Support » Fixing WordPress » change title and desicription of the excerpt meta box

  • Resolved Peter_L

    (@peter_l)


    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?

Viewing 1 replies (of 1 total)
  • 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');
    }
Viewing 1 replies (of 1 total)
  • The topic ‘change title and desicription of the excerpt meta box’ is closed to new replies.