woocommerce_proceed_to_checkout

The WordPress Core woocommerce proceed to checkout hook.

Description

remove_action( 'woocommerce_proceed_to_checkout', (string) $woocommerce_button_proceed_to_checkout, (int) $int ); 

Parameters (2)

0. $woocommerce_button_proceed_to_checkout (string) => 'woocommerce_button_proceed_to_checkout'
The woocommerce button proceed to checkout.
1. $int (int) => 20
The int.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_proceed_to_checkout', $woocommerce_button_proceed_to_checkout, $int ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_proceed_to_checkout callback 
  2. function action_woocommerce_proceed_to_checkout( $woocommerce_button_proceed_to_checkout, $int ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_proceed_to_checkout', 'action_woocommerce_proceed_to_checkout', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_proceed_to_checkout', 'action_woocommerce_proceed_to_checkout', 10, 2 ); 

Defined (2)

The action is defined in the following location(s).

/library/functions/basic-functions.php  
  1. remove_action('woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 20); // Remove Duplicated Checkout Button 
/library/woo-config.php  
  1. remove_action('woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 10);