I found a WordPress hook called “edit_form_after_title
” to add a text box after the title.
How can I use this hook to display the excerpt after the title while creating a new post?
4 s
It’s simple, just unregister postexcerpt
box first then add another one on the top.
Here is my code
add_action(
'admin_menu', function () {
remove_meta_box('postexcerpt', 'post', 'normal');
}, 999
);
add_action('edit_form_after_title', 'post_excerpt_meta_box');