Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // functions.php
- add_action( 'init', 'update_testimonials', 99 );
- function update_testimonials() {
- global $wp_post_types;
- if ( post_type_exists( 'testimonials' ) ) {
- // exclude from search results
- $wp_post_types['testimonials']->exclude_from_search = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement