Created
April 26, 2021 17:36
-
-
Save thecodepoetry/c21e52df11f775f39029691d13c79588 to your computer and use it in GitHub Desktop.
Disable page title CPT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'get_header', 'dt_disable_header', 10 ); | |
function dt_disable_header() { | |
$config = Presscore_Config::get_instance(); | |
if( is_singular( 'cpt_name' ) ) { | |
$config->set( 'header_title', 'disabled' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment