Friday, March 18, 2016

WORDPRESS- Replacing a textarea with WordPress TinyMCE wp_editor()

WORDPRESS- Replacing a textarea with WordPress TinyMCE wp_editor()

$content= 'default content';
$editor_id ='textarea_id';
$settings = array( 'textarea_name' => 'post_text' );
wp_editor( $content, $editor_id, $settings );

No comments :

Post a Comment