admin管理员组文章数量:1391795
I want to add a button in Add New Page and Add New Post pages.
Here are places I want to add items:
- New page's sidebar (next to Page Attributes).
New post's sidebar (next to Post Attributes).
New page's top bar (next to Block Navigation).
- New post's sidebar (next to Block Navigation).
What are the action hook to do it so?
function add_new_button_function (???)
{
echo "some html code";
}
add_action( '???', 'add_new_button_function' );
I want to add a button in Add New Page and Add New Post pages.
Here are places I want to add items:
- New page's sidebar (next to Page Attributes).
New post's sidebar (next to Post Attributes).
New page's top bar (next to Block Navigation).
- New post's sidebar (next to Block Navigation).
What are the action hook to do it so?
function add_new_button_function (???)
{
echo "some html code";
}
add_action( '???', 'add_new_button_function' );
Share
Improve this question
asked Feb 7, 2020 at 2:25
antwonantwon
132 bronze badges
1 Answer
Reset to default 0Welcome!
Here is a documentation for adding Custom sidebar. You can check possibilities and sample codes to add new metaboxes or buttons.
本文标签: customizationAdding buttons to Add New Post and Add New Page
版权声明:本文标题:customization - Adding buttons to Add New Post and Add New Page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744770269a2624296.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论