Created
August 22, 2018 20:20
-
-
Save wpmark/a17849914ac7281ccfb431d64fd7fcdb to your computer and use it in GitHub Desktop.
Alter the WordPress post title placeholder text
This file contains 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 | |
/** | |
* Alter the enter title here placeholder text. | |
* This is on the WordPress post edit screens. | |
* | |
* @param string $title The is the current placeholder string. | |
* @return string The modified placeholder string. | |
*/ | |
function hd_title_here( $title ) { | |
// set a new string for the placeholder text. | |
$title = __( 'Enter article title here.', 'text-domain' ); | |
// return the title back to the hook. | |
return $title; | |
} | |
add_action( 'enter_title_here', 'hd_title_here', 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment