fc_pro_cart_section_hook_priority_coupon_code
Type: Filter
Filters the hook priority for cart section coupon code.
Signature
apply_filters( 'fc_pro_cart_section_hook_priority_coupon_code', $value );
Parameters
| Name | Type | Description |
|---|---|---|
$value | mixed | Filtered value. |
Since
1.3.0
Source: inc/cart-ajax.php
Examples
add_filter( 'fc_pro_cart_section_hook_priority_coupon_code',
/**
* Move coupon code section earlier on cart page.
*
* @param mixed $value Filtered value.
* @return mixed Filtered value.
*/
function( $value ) {
// Adjust priority to display later on same hook
if ( 'fc_pro_cart_sections' === $value[0] ) {
$value[2] = 55;
}
return $value;
},
10
);