Created
August 6, 2019 06:39
-
-
Save hmbashar/96110bdfc27b1131d83f943b3c997bad to your computer and use it in GitHub Desktop.
How to change custom post title placeholder text
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
<?php | |
function social_change_title_text( $title ){ | |
$screen = get_current_screen(); | |
if ( 'movie' == $screen->post_type ) { | |
$title = 'Enter movie name with release year'; | |
} | |
return $title; | |
} | |
add_filter( 'enter_title_here', 'social_change_title_text' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment