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 badges1 Answer
Reset to default 1There 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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745629086a4636993.html
评论列表(0条)