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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744770270a4592716.html
评论列表(0条)