Advertisement
Guest User

Wp Editor on Metabox - attempt 2

a guest
Oct 8th, 2013
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. add_action("admin_head","load_custom_wp_tiny_mce");
  2. function load_custom_wp_tiny_mce() {
  3. $initial_data='What you want to appear in the text box initially';
  4. $settings = array(
  5. 'quicktags' => array('buttons' => 'em,strong,link',),
  6. 'textarea_name'=>'att_meta_bio',//name you want for the textarea
  7. 'quicktags' => true,
  8. 'tinymce' => true
  9. );
  10. $id = 'att_meta_bio';//has to be lower case
  11. wp_editor($initial_data,$id,$settings);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement