Se for o WP do front -end

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