Skip to main content

fc_no_substep_review_text_notice

Type: Filter

Filters the no substep review text notice.

Signature​

apply_filters( 'fc_no_substep_review_text_notice', $text, $substep_id );

Parameters​

NameTypeDescription
$textstringText to display.
$substep_idstringCheckout substep ID.

Since​

  • 1.5.0

Source: inc/checkout-steps.php

Examples​

add_filter( 'fc_no_substep_review_text_notice',
/**
* Customize no substep review text notice.
*
* @param string $text Text to display.
* @param string $substep_id Checkout substep ID.
* @return string Filtered value.
*/
function( $text, $substep_id ) {
if ( 'order_notes' === $substep_id ) {
return __( 'No notes added.', 'my-theme' );
}
return __( 'Not specified.', 'my-theme' );
},
10,
2
);