woocommerce_shipping_
woocommerce_shipping_
apply_filters('woocommerce_shipping_') is found 10 times:
- /includes/abstracts/abstract-wc-shipping-method.php line 425421422423424425426427428429430431
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 496492493494495496497498499500501502
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 522518519520521522523524525526527528
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 594
Warning: Undefined array key 596 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
Warning: Undefined array key 597 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
Warning: Undefined array key 598 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
Warning: Undefined array key 599 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
590591592593594595596}
}
}
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 324320321322323324325326327328329330
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 212208209210211212213214215216217218
$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 234230231232233234235236237238239240
$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
79808182838485if
(
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 226222223224225226227228229230231232
$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 127123124125126127128129130131132133
* @
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.