0

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

marked as duplicate by birgire, fuxia Jul 26 '15 at 15:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

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.