Created
December 29, 2015 19:14
-
-
Save maxkostinevich/2970edefebaf593e299c to your computer and use it in GitHub Desktop.
WP-Admin: Change post title placeholder
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 | |
add_filter( 'enter_title_here', 'my_filter' ); | |
function my_filter( $title ){ | |
$screen = get_current_screen(); | |
if ( 'invoice' == $screen->post_type ){ | |
$title = 'Your placeholder here'; | |
} | |
return $title; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment