woocommerce_shipping_method_description хук-фильтрWC 2.6.0

Return the shipping method description.

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

add_filter( 'woocommerce_shipping_method_description', 'wp_kama_woocommerce_shipping_method_description_filter', 10, 2 );

/**
 * Function for `woocommerce_shipping_method_description` filter-hook.
 * 
 * @param  $method_description 
 * @param  $that               
 *
 * @return 
 */
function wp_kama_woocommerce_shipping_method_description_filter( $method_description, $that ){

	// filter...
	return $method_description;
}
$method_description
-
$that
-

Список изменений

С версии 2.6.0 Введена.

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

WC_Shipping_Method::get_method_description()
woocommerce_shipping_method_description
woocommerce/includes/abstracts/abstract-wc-shipping-method.php 235
return apply_filters( 'woocommerce_shipping_method_description', $this->method_description, $this );

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

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