src/PostType/PostType.php
public function setTitlePlaceholder(string $title): PostTypeInterface
    {
        $this->filter->add('enter_title_here', function ($default) use ($title) {
            $screen = get_current_screen();

            if ($this->slug === $screen->post_type) {
                return $title;
            }

            return $default;
        });

        return $this;
    }
public function setTitlePlaceholder(string $title): PostTypeInterface
    {
        $this->filter->add('enter_title_here', function ($default) use ($title) {
            $screen = get_current_screen();

            if ($this->slug === $screen->post_type) {
                return $title;
            }

            return $default;
        });

        return $this;
    }
public function setTitlePlaceholder ( string $ title ) : PostTypeInterface { $ this -> filter -> add ( 'enter_title_here' , function ( $ default ) use ( $ title ) { $ screen = get_current_screen ( ) ; if ( $ this -> slug === $ screen -> post_type ) { return $ title ; } return $ default ; } ) ; return $ this ; }
Set the post type title input placeholder.

@param string $title

@return PostTypeInterface
Set the post type title input placeholder .