「ここにタイトルを入力」の文字を変更する
投稿画面のタイトル入力欄にある「ここにタイトルを入力」の文字を変更したい場合、テーマのfunctions.phpに下記のように記載します。
1 2 3 4 5 6 7 |
/** * 「ここにタイトルを入力」の文字を変更します。 */ function custom_enter_title_here( $title, $post ) { return 'タイトルを入力して下さい。'; } add_filter( 'enter_title_here', 'custom_enter_title_here', 10, 2 ); |