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.

  • It should just be in $_POST with whatever name you gave the textarea it's attached to. – Jacob Peattie Oct 31 '17 at 10:50
  • @JacobPeattie friend, i tried this way but i can't get data from wp_editor – Rang Oct 31 '17 at 18:39
  • Can you provide bit more Info like how you have set up the wp_editor and how are you trying to access the content? – Digvijayad Nov 1 '17 at 2:22
 $content = '';
 $editor_id = 'mycustomeditor';
 wp_editor( $content, $editor_id );

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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.