woocommerce_cart_shortcode_tag
Deprecated since 8.3.0 This filter is deprecated and will be removed in future versions.. It is no longer supported and may 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
woocommerce_cart_shortcode_tag
woocommerce_cart_shortcode_tag
woocommerce/includes/class-wc-install.php 1009
$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 1512
'shortcode' => '[' . apply_filters_deprecated( 'woocommerce_cart_shortcode_tag', array( 'woocommerce_cart' ), '8.3.0', 'woocommerce_create_pages' ) . ']',
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php 1516
$shortcode = apply_filters_deprecated( 'woocommerce_cart_shortcode_tag', array( 'woocommerce_cart' ), '8.3.0', 'woocommerce_create_pages' );