Skip to main content

fc_coupon_code_substep_step_id

Type: Filter

Filters the checkout step ID where the coupon code substep is registered.

Signature​

apply_filters( 'fc_coupon_code_substep_step_id', $value );

Parameters​

NameTypeDescription
$valuestringValue to filter. Default payment.

Since​

  • 4.0.0

Source: inc/checkout-coupon-codes.php

Examples​

add_filter( 'fc_coupon_code_substep_step_id',
/**
* Display coupon codes in shipping step.
*
* @param string $value Value to filter. Default payment.
* @return string Filtered value.
*/
function( $value ) {
return 'shipping';
},
10
);