1 <?php
 2 /**
 3  * Product Short Description
 4  *
 5  * Replaces the standard excerpt box.
 6  *
 7  * @author      WooThemes
 8  * @category    Admin
 9  * @package     WooCommerce/Admin/Meta Boxes
10  * @version     2.1.0
11  */
12 
13 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14 
15 /**
16  * WC_Meta_Box_Product_Short_Description
17  */
18 class WC_Meta_Box_Product_Short_Description {
19 
20     /**
21      * Output the metabox
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 
WooCommerce API documentation generated by ApiGen 2.8.0