WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] change title and desicription of the excerpt meta box (2 posts)

  1. Peter_L
    Member
    Posted 1 year ago #

    Hello,

    In the admin area, the_excerpt meta box has a title (the excerpt) and a description. I would like to change the title and remove the description on a custom_post_type.

    How do I do that?

  2. Peter_L
    Member
    Posted 1 year ago #

    Ah, this seems to do it

    add_action( 'admin_init',  'change_excerpt_box_title' );
    function change_excerpt_box_title() {
    	remove_meta_box( 'postexcerpt', 'my_custom_post_type', 'side' );
    	add_meta_box('postexcerpt', __('my new title'), 'post_excerpt_meta_box', 'my_custom_post_type', 'normal', 'high');
    }

Topic Closed

This topic has been closed to new replies.

About this Topic