Merge pull request #20190 from james-allan/add_action_after_cart_item_title
Add an action hook after printing the cart item name
This commit is contained in:
commit
70e3218a94
|
@ -81,6 +81,8 @@ do_action( 'woocommerce_before_cart' ); ?>
|
|||
echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', sprintf( '<a href="%s">%s</a>', esc_url( $product_permalink ), $_product->get_name() ), $cart_item, $cart_item_key ) );
|
||||
}
|
||||
|
||||
do_action( 'woocommerce_after_cart_item_name', $cart_item, $cart_item_key );
|
||||
|
||||
// Meta data.
|
||||
echo wc_get_formatted_cart_item_data( $cart_item ); // PHPCS: XSS ok.
|
||||
|
||||
|
|
Loading…
Reference in New Issue