Skip to content

Instantly share code, notes, and snippets.

@isGabe
Last active February 25, 2019 21:28

Revisions

  1. isGabe revised this gist Apr 14, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion wp_custom_title_placeholder_text.php
    Original file line number Diff line number Diff line change
    @@ -20,6 +20,6 @@ function wpfstop_change_default_title( $title ){
    return $title;
    }

    add_filter( 'enter_title_here', 'change_default_title' );
    add_filter( 'enter_title_here', 'wpfstop_change_default_title' );

    ?>
  2. isGabe revised this gist Apr 14, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion wp_custom_title_placeholder_text.php
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    source: http://flashingcursor.com/wordpress/change-the-enter-title-here-text-in-wordpress-963
    */

    function change_default_title( $title ){
    function wpfstop_change_default_title( $title ){

    $screen = get_current_screen();

  3. isGabe revised this gist Jun 13, 2013. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions wp_custom_title_placeholder_text.php
    Original file line number Diff line number Diff line change
    @@ -22,6 +22,4 @@ function change_default_title( $title ){

    add_filter( 'enter_title_here', 'change_default_title' );



    ?>
  4. isGabe revised this gist Jul 12, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions wp_custom_title_placeholder_text.php
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,8 @@
    with something more descriptive can be helpful for custom post types
    place this code in your theme's functions.php or relevant file
    source: http://flashingcursor.com/wordpress/change-the-enter-title-here-text-in-wordpress-963
    */

    function change_default_title( $title ){
  5. isGabe revised this gist Jul 12, 2012. 1 changed file with 5 additions and 4 deletions.
    9 changes: 5 additions & 4 deletions wp_custom_title_placeholder_text.php
    Original file line number Diff line number Diff line change
    @@ -10,15 +10,16 @@
    function change_default_title( $title ){

    $screen = get_current_screen();
    if ( 'your_custom_post_type' == $screen->post_type ) {

    if ( 'your_custom_post_type' == $screen->post_type ){
    $title = 'Your custom placeholder text';
    }

    return $title;
    }
    }

    add_filter( 'enter_title_here', 'change_default_title' );

    add_filter( 'enter_title_here', 'change_default_title' );

    }

    ?>
  6. isGabe revised this gist Jul 12, 2012. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion wp_custom_title_placeholder_text.php
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,11 @@
    <?php
    /* replacing the default "Enter title here" placeholder text in the title input box with something more descriptive can be helpful for custom post types */

    /*
    replacing the default "Enter title here" placeholder text in the title input box
    with something more descriptive can be helpful for custom post types
    place this code in your theme's functions.php or relevant file
    */

    function change_default_title( $title ){

  7. isGabe created this gist Jul 12, 2012.
    18 changes: 18 additions & 0 deletions wp_custom_title_placeholder_text.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    <?php
    /* replacing the default "Enter title here" placeholder text in the title input box with something more descriptive can be helpful for custom post types */

    function change_default_title( $title ){

    $screen = get_current_screen();
    if ( 'your_custom_post_type' == $screen->post_type ) {
    $title = 'Your custom placeholder text';
    }

    return $title;
    }

    add_filter( 'enter_title_here', 'change_default_title' );

    }

    ?>