fc_pro_cart_shipping_calculator_initially_expanded
Type: Filter
Filters whether cart shipping calculator initially expanded.
Signature
apply_filters( 'fc_pro_cart_shipping_calculator_initially_expanded', $value );
Parameters
| Name | Type | Description |
|---|---|---|
$value | bool | Whether cart shipping calculator initially expanded. Default false. |
Since
1.3.0
Source: templates/fc-pro/cart/cart/shipping-calculator.php
Examples
add_filter( 'fc_pro_cart_shipping_calculator_initially_expanded',
/**
* Show shipping calculator expanded.
*
* @param bool $value Whether cart shipping calculator initially expanded. Default false.
* @return bool Filtered value.
*/
function( $value ) {
return true;
},
10
);
add_filter( 'fc_pro_cart_shipping_calculator_initially_expanded',
/**
* Initially expand shipping calculator on cart page.
*
* @param bool $value Whether cart shipping calculator initially expanded. Default false.
* @return bool Filtered value.
*/
function( $value ) {
return true;
},
10
);