woocommerce_short_description хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_short_description', 'wp_kama_woocommerce_short_description_filter' );

/**
 * Function for `woocommerce_short_description` filter-hook.
 * 
 * @param  $product_short_description 
 *
 * @return 
 */
function wp_kama_woocommerce_short_description_filter( $product_short_description ){

	// filter...
	return $product_short_description;
}
$product_short_description
-

Где вызывается хук

WC_API_Products::get_product_data()
woocommerce_short_description
WC_REST_Products_V2_Controller::get_product_data()
woocommerce_short_description
WC_REST_Products_V1_Controller::get_product_data()
woocommerce_short_description
woocommerce/includes/legacy/api/v3/class-wc-api-products.php 1197
'short_description'  => apply_filters( 'woocommerce_short_description', $product->get_short_description() ),
woocommerce/includes/legacy/api/v2/class-wc-api-products.php 752
'short_description'  => apply_filters( 'woocommerce_short_description', $product->get_short_description() ),
woocommerce/includes/legacy/api/v1/class-wc-api-products.php 326
'short_description'  => apply_filters( 'woocommerce_short_description', $product->get_short_description() ),
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php 700
$base_data['short_description'] = 'view' === $context ? apply_filters( 'woocommerce_short_description', $product->get_short_description() ) : $product->get_short_description( $context );
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php 475
'short_description'     => apply_filters( 'woocommerce_short_description', $product->get_short_description() ),
woocommerce/templates/single-product/short-description.php 24
$short_description = apply_filters( 'woocommerce_short_description', $post->post_excerpt );

Где используется хук в WooCommerce

woocommerce/includes/wc-core-functions.php 50
add_filter( 'woocommerce_short_description', 'do_blocks', 9 );
woocommerce/includes/wc-core-functions.php 52
add_filter( 'woocommerce_short_description', 'wptexturize' );
woocommerce/includes/wc-core-functions.php 53
add_filter( 'woocommerce_short_description', 'convert_smilies' );
woocommerce/includes/wc-core-functions.php 54
add_filter( 'woocommerce_short_description', 'convert_chars' );
woocommerce/includes/wc-core-functions.php 55
add_filter( 'woocommerce_short_description', 'wpautop' );
woocommerce/includes/wc-core-functions.php 56
add_filter( 'woocommerce_short_description', 'shortcode_unautop' );
woocommerce/includes/wc-core-functions.php 57
add_filter( 'woocommerce_short_description', 'prepend_attachment' );
woocommerce/includes/wc-core-functions.php 58
add_filter( 'woocommerce_short_description', 'do_shortcode', 11 ); // After wpautop().
woocommerce/includes/wc-core-functions.php 59
add_filter( 'woocommerce_short_description', 'wc_format_product_short_description', 9999999 );
woocommerce/includes/wc-core-functions.php 60
add_filter( 'woocommerce_short_description', 'wc_do_oembeds' );
woocommerce/includes/wc-core-functions.php 61
add_filter( 'woocommerce_short_description', array( $GLOBALS['wp_embed'], 'run_shortcode' ), 8 ); // Before wpautop().