woocommerce_local_pickup_methods

woocommerce_local_pickup_methods

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_local_pickup_methods') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 1713
    		 *
    		 * @since 6.8.0
    		 * @param string[] $local_pickup_methods Local pickup shipping method IDs.
    		 */
    		$local_pickup_methods = apply_filters( 'woocommerce_local_pickup_methods', array( 'legacy_local_pickup', 'local_pickup' ) );
    
    		$shipping_method_ids = ArrayUtil::select( $this->get_shipping_methods(), 'get_method_id', ArrayUtil::SELECT_BY_OBJECT_METHOD );
    
    		// Set shop base address as a tax location if order has local pickup shipping method.
    		if ( $apply_base_tax && count( array_intersect( $shipping_method_ids, $local_pickup_methods ) ) > 0 ) {
    			$tax_based_on = 'base';
    

See this hook used in plugins: