woocommerce_shipping_

woocommerce_shipping_

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_shipping_') is found 10 times:

  • /includes/abstracts/abstract-wc-shipping-method.php line 422
    					break;
    			}
    		}
    
    		return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', $available, $package, $this );
    	}
    
    	/**
    	 * Get fee to add to shipping cost.
    	 *
    	 * @param string|float $fee Fee.
    
  • /includes/abstracts/abstract-wc-shipping-method.php line 493
    			return $this->get_instance_option( $key, $empty_value );
    		}
    
    		// Return global option.
    		$option = apply_filters( 'woocommerce_shipping_' . $this->id . '_option', parent::get_option( $key, $empty_value ), $key, $this );
    		return $option;
    	}
    
    	/**
    	 * Gets an option from the settings API, using defaults if necessary to prevent undefined notices.
    	 *
    
  • /includes/abstracts/abstract-wc-shipping-method.php line 519
    		if ( ! is_null( $empty_value ) && '' === $this->instance_settings[ $key ] ) {
    			$this->instance_settings[ $key ] = $empty_value;
    		}
    
    		$instance_option = apply_filters( 'woocommerce_shipping_' . $this->id . '_instance_option', $this->instance_settings[ $key ], $key, $this );
    		return $instance_option;
    	}
    
    	/**
    	 * Get settings fields for instances of this shipping method (within zones).
    	 * Should be overridden by shipping methods to add options.
    
  • /includes/abstracts/abstract-wc-shipping-method.php line 591

    Warning: Undefined array key 593 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 594 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 595 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 596 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    				}
    			}
    		}
    
    		return update_option( $this->get_instance_option_key(), apply_filters( 'woocommerce_shipping_' . $this->id . '_instance_settings_values', $this->instance_settings, $this ), 'yes' );
    	}
    }
    
    
    
    
    
  • /includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php line 320
    			if ( $errors_found ) {
    				return new WP_Error( 'rest_setting_value_invalid', __( 'An invalid setting value was passed.', 'woocommerce' ), array( 'status' => 400 ) );
    			}
    
    			update_option( $method->get_instance_option_key(), apply_filters( 'woocommerce_shipping_' . $method->id . '_instance_settings_values', $instance_settings, $method ) );
    		}
    
    		// Update order.
    		if ( isset( $request['order'] ) ) {
    			$wpdb->update( "{$wpdb->prefix}woocommerce_shipping_zone_methods", array( 'method_order' => absint( $request['order'] ) ), array( 'instance_id' => absint( $instance_id ) ) );
    			$method->method_order = absint( $request['order'] );
    
  • /includes/shipping/free-shipping/class-wc-shipping-free-shipping.php line 223
    				$is_available = true;
    				break;
    		}
    
    		return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', $is_available, $package, $this );
    	}
    
    	/**
    	 * Called to calculate shipping rates for this method. Rates can be added using the add_rate() method.
    	 *
    	 * @uses WC_Shipping_Method::add_rate()
    
  • /includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php line 234
    				$is_available = true;
    				break;
    		}
    
    		return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', $is_available, $package, $this );
    	}
    
    	/**
    	 * Calculate shipping.
    	 *
    	 * @param array $package Package information.
    
  • /includes/shipping/legacy-international-delivery/class-wc-shipping-legacy-international-delivery.php line 83

    Warning: Undefined array key 85 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 86 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 87 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 88 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    			if ( is_array( $this->countries ) && ( in_array( $package['destination']['country'], $this->countries, true ) || ! $package['destination']['country'] ) ) {
    				return false;
    			}
    		}
    		return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', true, $package, $this );
    	}
    }
    
    
    
    
    
  • /includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php line 226
    				$is_available = false;
    			}
    		}
    
    		return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', $is_available, $package, $this );
    	}
    
    	/**
    	 * Clean function.
    	 *
    	 * @access public
    
  • /src/Blocks/Shipping/PickupLocation.php line 127
    	 * @return bool
    	 */
    	public function is_available( $package ) {
    		// phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    		return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', 'yes' === $this->enabled, $package, $this );
    	}
    
    	/**
    	 * Translates meta data for the shipping method.
    	 *
    	 * @param string $label Meta label.