admin管理员组文章数量:1026134
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.
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.
本文标签: hooksHow do I add something to the quotEdit Tagquot page in wpadmin
版权声明:本文标题:hooks - How do I add something to the "Edit Tag" page in wp-admin? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745629084a2160048.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论