woocommerce_checkout_shortcode_tag filter-hookWC 2.1.0

Deprecated from version 8.3.0 This filter is deprecated and will be removed in future versions.. It is no longer supported and can be removed in future releases. It is recommended to replace this hook with the same one.

Determines the checkout shortcode tag used on the checkout page.

Usage

add_filter( 'woocommerce_checkout_shortcode_tag', 'wp_kama_woocommerce_checkout_shortcode_tag_filter', 10, 2 );

/**
 * Function for `woocommerce_checkout_shortcode_tag` filter-hook.
 * 
 * @param  $array  
 * @param  $string 
 *
 * @return 
 */
function wp_kama_woocommerce_checkout_shortcode_tag_filter( $array, $string ){

	// filter...
	return $array;
}
$array
-
$string
-

Changelog

Since 2.1.0 Introduced.
Deprecated since 8.3.0 This filter is deprecated and will be removed in future versions.

Where the hook is called

WC_Install::create_pages()
woocommerce_checkout_shortcode_tag
WC_REST_System_Status_V2_Controller::get_pages()
woocommerce_checkout_shortcode_tag
woocommerce/includes/class-wc-install.php 806
$checkout_shortcode = apply_filters_deprecated( 'woocommerce_checkout_shortcode_tag', array( '' ), '8.3.0', 'woocommerce_create_pages' );
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php 1348
'shortcode' => '[' . apply_filters_deprecated( 'woocommerce_checkout_shortcode_tag', array( 'woocommerce_checkout' ), '8.3.0', 'woocommerce_create_pages' ) . ']',

Where the hook is used in WooCommerce

Usage not found.