Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Fires before the sub-step fields section is rendered.
Modifiers #
{$substep_id}(string) The ID of the sub-step being rendered. Example:contact,shipping_methods.
Parameters #
$step_id(string) The step identifier.$substep_id(string) Id of the sub-step.$collapsible(bool) Whether to make the section collapsible or not. Defaults totrue.$context(string) Context in which the sub-step is being output. Defaults tocheckout.
Examples #
/**
* Add extra content before the sub-step contents.
*/
function add_custom_content( $step_id, $substep_id, $collapsible, $context ) {
echo '<div>Custom content before sub-step fields.</div>';
}
add_action( 'fc_before_substep_fields_shipping_methods', 'add_custom_content', 10, 4 );
