Skip to main content

fc_checkout_before

Type: Action

Fires before the checkout form contents.

Signature​

do_action( 'fc_checkout_before', $checkout );

Parameters​

NameTypeDescription
$checkout\WC_CheckoutCheckout 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
);