woocommerce_output_cart_shortcode_content
Output the cart shortcode.
Usage
add_filter( 'woocommerce_output_cart_shortcode_content', 'wp_kama_woocommerce_output_cart_shortcode_content_filter' );
/**
* Function for `woocommerce_output_cart_shortcode_content` filter-hook.
*
* @param array $atts Shortcode attributes.
*
* @return array
*/
function wp_kama_woocommerce_output_cart_shortcode_content_filter( $atts ){
// filter...
return $atts;
}
- $atts(array)
- Shortcode attributes.
Where the hook is called
woocommerce_output_cart_shortcode_content
woocommerce/includes/shortcodes/class-wc-shortcode-cart.php 74
if ( ! apply_filters( 'woocommerce_output_cart_shortcode_content', true ) ) {