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

Filter the method description.

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

add_filter( 'woocommerce_gateway_method_description', 'wp_kama_woocommerce_gateway_method_description_filter', 10, 2 );

/**
 * Function for `woocommerce_gateway_method_description` filter-hook.
 * 
 * @param string             $description Method description.
 * @param WC_Payment_Gateway $that        Payment gateway instance.
 *
 * @return string
 */
function wp_kama_woocommerce_gateway_method_description_filter( $description, $that ){

	// filter...
	return $description;
}
$description(строка)
Method description.
$that(WC_Payment_Gateway)
Payment gateway instance.

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

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

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

WC_Payment_Gateway::get_method_description()
woocommerce_gateway_method_description
woocommerce/includes/abstracts/abstract-wc-payment-gateway.php 200
return apply_filters( 'woocommerce_gateway_method_description', $this->method_description, $this );

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

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