Skip to main content
added 54 characters in body
Source Link
T.Todua
  • 5.9k
  • 9
  • 51
  • 79

wp_editor() outputs the textarea(html codes), so, maybe you dont need to use that in functions.php, but use inside the page's source. (for example, in your plugin.php:

<div class="blabla>
  <form action="" method="POST">
  <?php wp_editor( 'Hi,its content' , 'desired_id_of_textarea', $settings = array('textarea_name'=>'your_desired_name_for_$POST') ); ?> 
  <input type="submit">
  </form>
</div>

note: it may wont work for add_option function..

wp_editor() outputs the textarea(html codes), so, maybe you dont need to use that in functions.php, but use inside the page's source. (for example, in your plugin.php:

<div class="blabla>
  <form action="" method="POST">
  <?php wp_editor( 'Hi,its content' , 'desired_id_of_textarea', $settings = array('textarea_name'=>'your_desired_name_for_$POST') ); ?> 
  <input type="submit">
  </form>
</div>

wp_editor() outputs the textarea(html codes), so, maybe you dont need to use that in functions.php, but use inside the page's source. (for example, in your plugin.php:

<div class="blabla>
  <form action="" method="POST">
  <?php wp_editor( 'Hi,its content' , 'desired_id_of_textarea', $settings = array('textarea_name'=>'your_desired_name_for_$POST') ); ?> 
  <input type="submit">
  </form>
</div>

note: it may wont work for add_option function..

Source Link
T.Todua
  • 5.9k
  • 9
  • 51
  • 79

wp_editor() outputs the textarea(html codes), so, maybe you dont need to use that in functions.php, but use inside the page's source. (for example, in your plugin.php:

<div class="blabla>
  <form action="" method="POST">
  <?php wp_editor( 'Hi,its content' , 'desired_id_of_textarea', $settings = array('textarea_name'=>'your_desired_name_for_$POST') ); ?> 
  <input type="submit">
  </form>
</div>