I want to limit the Product Short Description, so that only text can be added. (Disable tinymce editor). As there is post excerpt in regular posts.
Current:
- Product Short Description = TinyMCE Editor
Expected:
- Regular Posts Excerpt = TEXT ONLY
From what i found, this is what WooCommerce does to replace the standard excerpt box.
In includes/admin/class-wc-admin-meta-boxes.php on line 119 there is
add_meta_box( 'postexcerpt', __( 'Product short description', 'woocommerce' ), 'WC_Meta_Box_Product_Short_Description::output', 'product', 'normal' );
What refers to includes/admin/meta-boxes/class-wc-meta-box-product-short-description.php
/**
* WC_Meta_Box_Product_Short_Description Class.
*/
class WC_Meta_Box_Product_Short_Description {
/**
* Output the metabox.
*
* @param WP_Post $post Post object.
*/
public static function output( $post ) {
$settings = array(
'textarea_name' => 'excerpt',
'quicktags' => array( 'buttons' => 'em,strong,link' ),
'tinymce' => array(
'theme_advanced_buttons1' => 'bold,italic,strikethrough,separator,bullist,numlist,separator,blockquote,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,separator,undo,redo,separator',
'theme_advanced_buttons2' => '',
),
'editor_css' => '<style>#wp-excerpt-editor-container .wp-editor-area{height:175px; width:100%;}</style>',
);
wp_editor( htmlspecialchars_decode( $post->post_excerpt, ENT_QUOTES ), 'excerpt', apply_filters( 'woocommerce_product_short_description_editor_settings', $settings ) );
}
}
Any advice would be appreciated

