Si es front -end WP

if(!is_admin()) {
//logic
}
Andrew Lautenbach