WC_Meta_Box_Product_Short_Description

WC_Meta_Box_Product_Short_Description Class.

Defined (1)

The class is defined in the following location(s).

/includes/admin/meta-boxes/class-wc-meta-box-product-short-description.php  
  1. class WC_Meta_Box_Product_Short_Description { 
  2.  
  3. /** 
  4. * Output the metabox. 
  5. * @param WP_Post $post 
  6. */ 
  7. public static function output( $post ) { 
  8.  
  9. $settings = array( 
  10. 'textarea_name' => 'excerpt',  
  11. 'quicktags' => array( 'buttons' => 'em, strong, link' ),  
  12. 'tinymce' => array( 
  13. 'theme_advanced_buttons1' => 'bold, italic, strikethrough, separator, bullist, numlist, separator, blockquote, separator, justifyleft, justifycenter, justifyright, separator, link, unlink, separator, undo, redo, separator',  
  14. 'theme_advanced_buttons2' => '',  
  15. ),  
  16. 'editor_css' => '<style>#wp-excerpt-editor-container .wp-editor-area{height:175px; width:100%;}</style>',  
  17. ); 
  18.  
  19. wp_editor( htmlspecialchars_decode( $post->post_excerpt ), 'excerpt', apply_filters( 'woocommerce_product_short_description_editor_settings', $settings ) );