Migrating from metaboxes to wp_editor()
Question
I got a client requirement where the editing facilities available in wordpress had to be available for content that was meant to be displayed on the sidebar of a particular post/page.
The content to be displayed was implemented originally using metaboxes which contained a single textarea where content was input as raw HTML and did not have insert/upload facilities.
I have decided to migrate this design to use wp_editor()
as it gives all the wordpress native editing facilities (without using a metabox as it is not recommended). But I am not sure how to get the entered data and POST it to the backend and then tie into the following action to save the data:
add_action( 'save_post', 'save_sidebar_content' );
I was also using the following helper functions:
get_post_meta();
add_post_meta();
update_post_meta();
delete_post_meta();
I would like to know if there are any such functions to ease the CRUD operations related to this data when using wp_editor().
Thanks in advance. nav
No correct solution