woocommerce_checkout_shortcode_tag
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
woocommerce_checkout_shortcode_tag
woocommerce_checkout_shortcode_tag
woocommerce/includes/class-wc-install.php 880
$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 1455
'shortcode' => '[' . apply_filters_deprecated( 'woocommerce_checkout_shortcode_tag', array( 'woocommerce_checkout' ), '8.3.0', 'woocommerce_create_pages' ) . ']',