woocommerce_checkout_init
Runs once when the WC_Checkout class is first instantiated.
Usage
add_action( 'woocommerce_checkout_init', 'wp_kama_woocommerce_checkout_init_action' ); /** * Function for `woocommerce_checkout_init` action-hook. * * @param $self::$instance * * @return void */ function wp_kama_woocommerce_checkout_init_action( $self::$instance ){ // action... }
- $self::$instance
- -
Changelog
Since 3.0.0 | Introduced. |
Since 3.0.0 | or earlier |
Where the hook is called
woocommerce_checkout_init
woocommerce/includes/class-wc-checkout.php 66
do_action( 'woocommerce_checkout_init', self::$instance );