woocommerce_checkout_shortcode_tag

Get settings array.

Description

apply_filters( 'woocommerce_checkout_shortcode_tag', (string) $woocommerce_checkout ); 

Parameters (1)

0. $woocommerce_checkout (string) => 'woocommerce_checkout'
The woocommerce checkout.

Usage

To run the hook, copy the example below.
  1. $woocommerce_checkout = apply_filters( 'woocommerce_checkout_shortcode_tag', $woocommerce_checkout ); 
  2.  
  3. if ( !empty( $woocommerce_checkout ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_checkout_shortcode_tag callback 
  2. function filter_woocommerce_checkout_shortcode_tag( $woocommerce_checkout ) { 
  3. // make filter magic happen here... 
  4. return $woocommerce_checkout
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_checkout_shortcode_tag', 'filter_woocommerce_checkout_shortcode_tag', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_checkout_shortcode_tag', 'filter_woocommerce_checkout_shortcode_tag', 10, 1 ); 

Defined (3)

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

/includes/class-wc-install.php  
  1. 'content' => '[' . apply_filters( 'woocommerce_checkout_shortcode_tag', 'woocommerce_checkout' ) . ']', 
/includes/api/class-wc-rest-system-status-controller.php  
  1. 'shortcode' => '[' . apply_filters( 'woocommerce_checkout_shortcode_tag', 'woocommerce_checkout' ) . ']', 
/includes/admin/settings/class-wc-settings-checkout.php  
  1. 'desc' => sprintf( __( 'Page contents: [%s]', 'woocommerce' ), apply_filters( 'woocommerce_checkout_shortcode_tag', 'woocommerce_checkout' ) ),