woocommerce_short_description
Usage
add_filter( 'woocommerce_short_description', 'wp_kama_woocommerce_short_description_filter' );
/**
* Function for `woocommerce_short_description` filter-hook.
*
* @param $post_excerpt
*
* @return
*/
function wp_kama_woocommerce_short_description_filter( $post_excerpt ){
// filter...
return $post_excerpt;
}
- $post_excerpt
- -
Where the hook is called
woocommerce_short_description
woocommerce/templates/single-product/short-description.php 24
$short_description = apply_filters( 'woocommerce_short_description', $post->post_excerpt );
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php 480
'short_description' => apply_filters( 'woocommerce_short_description', $product->get_short_description() ),
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php 748
$base_data['short_description'] = 'view' === $context ? apply_filters( 'woocommerce_short_description', $product->get_short_description() ) : $product->get_short_description( $context );
Where the hook is used in WooCommerce
woocommerce/includes/wc-core-functions.php 51
add_filter( 'woocommerce_short_description', 'do_blocks', 9 );
woocommerce/includes/wc-core-functions.php 53
add_filter( 'woocommerce_short_description', 'wptexturize' );
woocommerce/includes/wc-core-functions.php 54
add_filter( 'woocommerce_short_description', 'convert_smilies' );
woocommerce/includes/wc-core-functions.php 55
add_filter( 'woocommerce_short_description', 'convert_chars' );
woocommerce/includes/wc-core-functions.php 56
add_filter( 'woocommerce_short_description', 'wpautop' );
woocommerce/includes/wc-core-functions.php 57
add_filter( 'woocommerce_short_description', 'shortcode_unautop' );
woocommerce/includes/wc-core-functions.php 58
add_filter( 'woocommerce_short_description', 'prepend_attachment' );
woocommerce/includes/wc-core-functions.php 59
add_filter( 'woocommerce_short_description', 'do_shortcode', 11 ); // After wpautop().
woocommerce/includes/wc-core-functions.php 60
add_filter( 'woocommerce_short_description', 'wc_format_product_short_description', 9999999 );
woocommerce/includes/wc-core-functions.php 61
add_filter( 'woocommerce_short_description', 'wc_do_oembeds' );
woocommerce/includes/wc-core-functions.php 62
add_filter( 'woocommerce_short_description', array( $GLOBALS['wp_embed'], 'run_shortcode' ), 8 ); // Before wpautop().