fc_coupon_code_substep_priority
Type: Filter
Filters the priority of the coupon code substep.
Signature
apply_filters( 'fc_coupon_code_substep_priority', $priority );
Parameters
| Name | Type | Description |
|---|---|---|
$priority | int | Hook or step priority. Default 10. |
Since
4.0.0
Source: inc/checkout-coupon-codes.php
Examples
Running under very_late_hooks so needs a higher priority to run correctly. In this example we used 150
add_filter( 'fc_coupon_code_substep_priority',
/**
* Set lower priority for coupon code substep.
*
* @param int $priority Hook or step priority. Default 10.
* @return int Filtered value.
*/
function( $priority ) {
return 50;
},
150
);