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

Check shipping method at this point to see if we need special handling.

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

add_filter( 'woocommerce_apply_base_tax_for_local_pickup', 'wp_kama_woocommerce_apply_base_tax_for_local_pickup_filter' );

/**
 * Function for `woocommerce_apply_base_tax_for_local_pickup` filter-hook.
 * 
 * @param  $true 
 *
 * @return 
 */
function wp_kama_woocommerce_apply_base_tax_for_local_pickup_filter( $true ){

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

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

WC_Customer::get_taxable_address()
woocommerce_apply_base_tax_for_local_pickup
WC_Abstract_Order::get_tax_location()
woocommerce_apply_base_tax_for_local_pickup
woocommerce/includes/class-wc-customer.php 189
if ( true === apply_filters( 'woocommerce_apply_base_tax_for_local_pickup', true ) && count( array_intersect( wc_get_chosen_shipping_method_ids(), apply_filters( 'woocommerce_local_pickup_methods', array( 'legacy_local_pickup', 'local_pickup' ) ) ) ) > 0 ) {
woocommerce/includes/abstracts/abstract-wc-order.php 1605
$apply_base_tax = true === apply_filters( 'woocommerce_apply_base_tax_for_local_pickup', true );

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

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