fc_shipping_methods_disable_auto_select
Type: Filter
Filters the shipping methods disable auto select.
Signature
apply_filters( 'fc_shipping_methods_disable_auto_select', $value, $default, $rates, $chosen_method );
Parameters
| Name | Type | Description |
|---|---|---|
$value | string | Value to filter. |
$default | mixed | Default. |
$rates | array | Rates. |
$chosen_method | string | Chosen method. |
Since
4.0.0
Source: inc/checkout-steps.php
Examples
add_filter( 'fc_shipping_methods_disable_auto_select',
/**
* Prevent automatic shipping method selection.
*
* @param string $value Value to filter.
* @param mixed $default Default.
* @param array $rates Rates.
* @param string $chosen_method Chosen method.
* @return string Filtered value.
*/
function( $value, $default, $rates, $chosen_method ) {
return false;
},
10,
4
);