Site icon Hip-Hop Website Design and Development

Exclude Customized put up kind from /weblog web page

Customized put up kind title is "project". I want code in features.php

That is working for search:

// Exclude customized put up kind from  WP Search
add_action( 'init', 'update_my_custom_type', 99 );
operate update_my_custom_type() {
    international $wp_post_types;

    if ( post_type_exists( 'venture' ) ) {
        // exclude from search outcomes
        $wp_post_types['project']->exclude_from_search = true;
    }
}

I cannot discover a answer for /weblog web page.