woocommerce_cart_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 cart shortcode tag used for the cart page.

Usage

add_filter( 'woocommerce_cart_shortcode_tag', 'wp_kama_woocommerce_cart_shortcode_tag_filter', 10, 2 );

/**
 * Function for `woocommerce_cart_shortcode_tag` filter-hook.
 * 
 * @param  $array  
 * @param  $string 
 *
 * @return 
 */
function wp_kama_woocommerce_cart_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_cart_shortcode_tag
WC_REST_System_Status_V2_Controller::get_pages()
woocommerce_cart_shortcode_tag
woocommerce/includes/class-wc-install.php 806
$cart_shortcode = apply_filters_deprecated( 'woocommerce_cart_shortcode_tag', array( '' ), '8.3.0', 'woocommerce_create_pages' );
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php 1386
'shortcode' => '[' . apply_filters_deprecated( 'woocommerce_cart_shortcode_tag', array( 'woocommerce_cart' ), '8.3.0', 'woocommerce_create_pages' ) . ']',

Where the hook is used in WooCommerce

Usage not found.