-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Site Editor: Set the <title> on the list page to be same as the CPT name #36805
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well, thanks 👍
} | ||
} | ||
} | ||
add_action( 'load-appearance_page_gutenberg-edit-site', 'gutenberg_set_site_editor_list_page_title' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for not using the admin_title
filter - https://developer.wordpress.org/reference/hooks/admin_title/?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to write this in a way that's pretty close to how it will look when added to Core, which is that we'll just change $title
here:
…ame (#36805) * Site Editor: Set the <title> on the list page to be same as the CPT name * Remove unused argument
Is this code still required now that we moved to frontend routing? |
@youknowriad, it's not. We handle document title update on the client-side now. |
We should be able to just revert this. |
Description
See #36597.
Changes the
<title>
on the list page to be the name of the CPT being edited, e.g. 'Templates'.How has this been tested?
Screenshots
Checklist:
*.native.js
files for terms that need renaming or removal).