array(),'em'=>array(),'b'=>array(),'i'=>array(),'a'=>array(),'li'=>array(),'ol'=>array(),'ul'=>array(),'br'=>array(),'div'=>array()); // Sanitize the user input. $mydata = wp_kses( $_POST['wooapp_product_desc'],$allowed_html ); // Update the meta field. update_post_meta( $post_id, 'wooapp_product_desc', $mydata ); } /** * Render Meta Box content. * * @param WP_Post $post The post object. */ public function render_meta_box_content( $post ) { // Add an nonce field so we can check for it later. wp_nonce_field( 'wooapp_inner_custom_box', 'wooapp_inner_custom_box_nonce' ); // Use get_post_meta to retrieve an existing value from the database. $value = get_post_meta( $post->ID, 'wooapp_product_desc', true ); $settings = array( 'textarea_name' => 'wooapp_product_desc', 'media_buttons' => false, 'quicktags' => array( 'buttons' => 'em,strong,link' ), 'tinymce' => array( 'toolbar1' => 'bold,italic,strikethrough,bullist,numlist,link,unlink,separator,undo,redo,separator', 'theme_advanced_buttons2' => '', ), 'editor_css' => '' ); wp_editor( $value , 'wooapp_product_desc_field',$settings); } }