[wp-trac] [WordPress Trac] #61219: Simplify add_new_item labels for core post types
WordPress Trac
noreply at wordpress.org
Wed Apr 16 12:14:03 UTC 2025
#61219: Simplify add_new_item labels for core post types
-------------------------------------+-------------------------------------
Reporter: jameskoster | Owner: audrasjb
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.8
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: add-to-field-guide | Focuses: ui, accessibility,
early has-patch fixed-major dev- | administration
reviewed |
-------------------------------------+-------------------------------------
Changes (by sitebolts):
* status: closed => reopened
* resolution: fixed =>
Comment:
Hi all, a few thoughts/questions here:
**1**. Is it still possible to use separate custom wording on the menu
item and page title? For a custom post type like "Location", we'd like to
set [https://i.imgur.com/mhuRuy6.png the menu item] to "Add New" to keep
it short, but then display the full "Add New Location" on
[https://i.imgur.com/8Ie2lAw.png the editing screen].
Our assumption would be that the `add_new` arg would set one and the
`add_new_item` arg would set the other, but it appears that the `add_new`
arg is now completely ignored and that the `add_new_item` arg is instead
outputted in both locations, leaving us unable to fully customize the
wording.
**2**. The
[https://developer.wordpress.org/reference/functions/register_post_type/
register_post_type documentation] still mentions both 'add_new' and
'add_new_item' and appears to suggest using them in roughly the way that
we were hoping to use them. Is that documentation no longer correct?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61219#comment:47>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list