Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm modifying the layout and content of the wordpress admin panel using a custom plugin. For most sections I have been able to change the page heading (i.e. the title wrapped in h2 tags at the top of each page), however I've been unable to do so for sections to relating post types, specifically adding and editing posts and pages.

Currently when adding a new page to the wordpress site, the heading is 'Add New Page', but I'd like to be able to modify this text - so far I've been searching for the hook to do this but have been unable to find one.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

In wp-admin/edit.php at line 189 you can see that the title text is grabbed from the labels of the post type:

<h2><?php echo esc_html( $post_type_object->labels->name ); ?> ... </h2>

When you register a new post type (register_post_type) you can also define its labels. The available labels are listed in the Codex.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.