Show title in a custom wordpress post

0

Good people, it turns out that I have a custom post where it has been removed for some time the title that it has by default, but another person did it and now I need to add it again but I do not know how to do it, here it would seem that it is showing but it is not A) Yes. Any Wordpress connoisseur who can help me?

function brc_do_and_dont_response_title_text( $title ) {
	$screen = get_current_screen();

	if ( 'do_and_dont' == $screen->post_type ) {
		$title = esc_attr__( 'Enter Name', 'fbb' );
	}

	return $title;
}

add_filter( 'enter_title_here', 'brc_do_and_dont_response_title_text' );
    
asked by Santiago D'Antuoni 31.10.2016 в 19:02
source

1 answer

0

enter_title_here is a WP hook and is used to set the default text for new posts, only commenting the add_filter line would reach, remember that the function brc_do_and_dont_response_title_text would be obsolete after this.

    
answered by 31.10.2016 в 19:17