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:
Mike Jolley 2018-05-25 11:46:20 +01:00 committed by GitHub
commit 70e3218a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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.