woocommerce_local_pickup_methods хук-фильтрWC 6.8.0

Filters local pickup shipping methods.

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

add_filter( 'woocommerce_local_pickup_methods', 'wp_kama_woocommerce_local_pickup_methods_filter' );

/**
 * Function for `woocommerce_local_pickup_methods` filter-hook.
 * 
 * @param string[] $local_pickup_methods Local pickup shipping method IDs.
 *
 * @return string[]
 */
function wp_kama_woocommerce_local_pickup_methods_filter( $local_pickup_methods ){

	// filter...
	return $local_pickup_methods;
}
$local_pickup_methods(string[])
Local pickup shipping method IDs.

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

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

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

WC_Abstract_Order::get_tax_location()
woocommerce_local_pickup_methods
woocommerce/includes/abstracts/abstract-wc-order.php 1567
$local_pickup_methods = apply_filters( 'woocommerce_local_pickup_methods', array( 'legacy_local_pickup', 'local_pickup' ) );

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

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