admin管理员组

文章数量:1434955

I have some term_meta that I would like to display on the "Edit Tag" page in wp-admin. I found the following two action hooks, but both don't do what I want.

edit_tag_form

edit_tag_form_pre

These hooks either add something inside the form at the start, or at the end of the form, but before the "Update" and "Delete" buttons. What I would like to do is add entirely new section below the "Edit Tag" form that shows my term_meta.

Are there any hooks available for this?

I have some term_meta that I would like to display on the "Edit Tag" page in wp-admin. I found the following two action hooks, but both don't do what I want.

edit_tag_form

edit_tag_form_pre

These hooks either add something inside the form at the start, or at the end of the form, but before the "Update" and "Delete" buttons. What I would like to do is add entirely new section below the "Edit Tag" form that shows my term_meta.

Are there any hooks available for this?

Share Improve this question asked Aug 19, 2017 at 12:10 SwenSwen 1,4047 gold badges22 silver badges37 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

There is the in_admin_footer hook that's right before the "Thank you for creating with WordPress." text in the footer, you can check if you're on a tag edit screen in that hook.

function wpse_277416_admin_footer() {
    $screen = get_current_screen();

    if ( $screen->id  === 'edit-post_tag' ) {
        echo 'Hello world!';
    }
}
add_action( 'in_admin_footer', 'wpse_277416_admin_footer' );

That's not quite what you want though, but there's no hooks between the submit button and the footer text.

本文标签: hooksHow do I add something to the quotEdit Tagquot page in wpadmin