fc_checkout_before
Type: Action
Fires before the checkout form contents.
Signature
do_action( 'fc_checkout_before', $checkout );
Parameters
| Name | Type | Description |
|---|---|---|
$checkout | \WC_Checkout | Checkout object. |
Since
1.2.0
Source: templates/fc/checkout-steps/checkout/form-checkout.php
Examples
add_action( 'fc_checkout_before',
/**
* Add div opening tag before checkout.
*
* @param \WC_Checkout $checkout Checkout object.
*/
function( $checkout ) {
echo '<div class="custom-before-checkout">';
},
10
);