woocommerce_local_pickup_methods filter-hookWC 6.8.0

Filters local pickup shipping methods.

Usage

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.

Changelog

Since 6.8.0 Introduced.

Where the hook is called

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' ) );

Where the hook is used in WooCommerce

Usage not found.