woocommerce_blocks_checkout_enqueue_data action-hookWC 2.6.0

Fires after checkout block data is registered.

Usage

add_action( 'woocommerce_blocks_checkout_enqueue_data', 'wp_kama_woocommerce_blocks_checkout_enqueue_data_action' );

/**
 * Function for `woocommerce_blocks_checkout_enqueue_data` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_blocks_checkout_enqueue_data_action(){

	// action...
}

Changelog

Since 2.6.0 Introduced.

Where the hook is called

Checkout::enqueue_data()
woocommerce_blocks_checkout_enqueue_data
woocommerce/src/Blocks/BlockTypes/Checkout.php 456
do_action( 'woocommerce_blocks_checkout_enqueue_data' );

Where the hook is used in WooCommerce

woocommerce/src/Blocks/Domain/Services/CheckoutFields.php 243
add_action( 'woocommerce_blocks_checkout_enqueue_data', array( $this, 'add_fields_data' ) );
woocommerce/src/Blocks/Payments/Api.php 48
add_action( 'woocommerce_blocks_checkout_enqueue_data', array( $this, 'add_payment_method_script_data' ) );