Get data from wp_editor()

I can use wp_editor() function for add custom post use wp_insert_post() function (with post_content parameter) in my plugin.

I need to can be saved data from wp_editor() function.

How can i get output ?

Thanks so much.

1 Answer
1

 $content="";
 $editor_id = 'mycustomeditor';
 wp_editor( $content, $editor_id );


/** If you want to get data wp_editor value from POST **/


 print_r($_POST['mycustomeditor']);

Leave a Comment