function update_my_custom_type() {
global $wp_post_types;
if ( post_type_exists( 'property' ) ) {
// exclude from search results
$wp_post_types['property']->exclude_from_search = true;
}
}
function update_my_custom_type() {
global $wp_post_types;
if ( post_type_exists( 'property' ) ) {
// exclude from search results
$wp_post_types['property']->exclude_from_search = true;
}
}