Online Forum To Support Coders With Technical Assistance - Read Write Execute

How to use editor in wordpress

Ankit Agrawal
Ankit Agrawal
Published on October 3, 2015 · 1 min read

There is a predefined function in wordpress to add editor anywhere in your code. use following code to display editor

<?php
$settings = array( 'media_buttons' => false ,'editor_height' => '100' ,
'editor_class'=>'class name', 'textarea_name' => 'your textarea name' );
wp_editor($value,$name, $settings );
?>

for more info you can visit here

Was this article helpful?
Ankit Agrawal

Ankit Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article How to add google recaptcha on login form in cakephp Next Article → how can we pass variables from view to element in cakephp