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

Return the shipping title which is user set.

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

add_filter( 'woocommerce_shipping_method_title', 'wp_kama_woocommerce_shipping_method_title_filter', 10, 2 );

/**
 * Function for `woocommerce_shipping_method_title` filter-hook.
 * 
 * @param  $title 
 * @param  $id    
 *
 * @return 
 */
function wp_kama_woocommerce_shipping_method_title_filter( $title, $id ){

	// filter...
	return $title;
}
$title
-
$id
-

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

WC_Shipping_Method::get_title()
woocommerce_shipping_method_title
WC_Shipping_Method::get_method_title()
woocommerce_shipping_method_title
woocommerce/includes/abstracts/abstract-wc-shipping-method.php 244
return apply_filters( 'woocommerce_shipping_method_title', $this->title, $this->id );
woocommerce/includes/abstracts/abstract-wc-shipping-method.php 225
return apply_filters( 'woocommerce_shipping_method_title', $this->method_title, $this );

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

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