Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

WordPress Custom Title for Custom Post Type Screen

View wp-custom-title-cpt-screen.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php
/**
* TODO: Replace cptname with name of custom post type
* TODO: Replace Screen Title Text Here with the content for the title box
*/
function custom_cptname_title( $title ){
$screen = get_current_screen();
if ( 'cptname' == $screen->post_type ) {
$title = 'Screen Title Text Here';
}
return $title;
}
add_filter( 'enter_title_here', 'custom_cptname_title' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.