1 <?php
2 3 4 5 6 7 8 9 10 11
12
13 if ( ! defined( 'ABSPATH' ) ) exit;
14
15 16 17
18 class WC_Meta_Box_Product_Short_Description {
19
20 21 22
23 public static function output( $post ) {
24 $settings = array(
25 'textarea_name' => 'excerpt',
26 'quicktags' => array( 'buttons' => 'em,strong,link' ),
27 'tinymce' => array(
28 'theme_advanced_buttons1' => 'bold,italic,strikethrough,separator,bullist,numlist,separator,blockquote,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,separator,undo,redo,separator',
29 'theme_advanced_buttons2' => '',
30 ),
31 'editor_css' => '<style>#wp-excerpt-editor-container .wp-editor-area{height:175px; width:100%;}</style>'
32 );
33
34 wp_editor( htmlspecialchars_decode( $post->post_excerpt ), 'excerpt', apply_filters( 'woocommerce_product_short_description_editor_settings', $settings ) );
35 }
36
37 }
38