Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#28465 closed enhancement (wontfix)

allow Custom Post Type admin title "Enter text here" defined by user in $labels

Reported by: alexufo's profile alexufo Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.9.1
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

Admin title default "Enter text here"
But all custom post type buttons can be defined by user. And logical to assume "Enter text here" need to be defined by user instead hook:

function change default title( $title ){ $screen = get_current_screen(); if ( 'POST_TYPE' == $screen->post_type ) { $title = 'Enter Invoice Title'; } return $title;
}
add_filter( 'enter_title_here', 'change_default title' );

I think if we can defined buttons name, we must define "enter text here" similarly

Change History (5)

#1 @alexufo
11 years ago

  • Summary changed from allow Custom Post Type admin title "Enter text here" difened buy user in $labels to allow Custom Post Type admin title "Enter text here" defined by user in $labels

#2 follow-up: @helen
11 years ago

  • Keywords close added

"Enter title here" is a perfectly reasonable default for something that is a title field. The current labels for registering a post type involve the name of the post type itself, which is not inherently a part of the title field. The filter seems like enough to me. Suggest wontfix.

#3 in reply to: ↑ 2 @DrewAPicture
11 years ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Replying to helen:

The filter seems like enough to me. Suggest wontfix.

I agree.

#4 @alexufo
11 years ago

Enter Address here
Enter Name and surname here
Enter Model number here...
Enter Product name

But okay) if title is out from $labels architectonically

#5 @ocean90
9 years ago

#36425 was marked as a duplicate.

Note: See TracTickets for help on using tickets.