Is it possible to use custom placeholder for custom post title?

I couldn't see any placeholder mentioned in the labels array argument of register_post_type function documentation.

enter image description here


Yes sure you can achive that simply using enter_title_here filter hook.

    add_filter('enter_title_here', 'my_title_place_holder' , 20 , 2 );
    function my_title_place_holder($title , $post){

        if( $post->post_type == 'portfolio' ){
            $my_title = "Add new Portfolio";
            return $my_title;

        return $title;


Not the answer you're looking for? Browse other questions tagged or ask your own question.