woocommerce_cart_item_permalink

woocommerce_cart_item_permalink

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_cart_item_permalink') is found 3 times:

  • /src/StoreApi/Schemas/V1/CartItemSchema.php line 52
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    * @param string $product_permalink Product permalink.
     * @param array  $cart_item         Cart item array.
     * @param string $cart_item_key     Cart item key.
     */
    $product_permalink = apply_filters( 'woocommerce_cart_item_permalink', $product->get_permalink(), $cart_item, $cart_item['key'] );
     
    return [
        'key'                  => $cart_item['key'],
        'id'                   => $product->get_id(),
        'type'                 => $product->get_type(),
        'quantity'             => wc_stock_amount( $cart_item['quantity'] ),
  • /templates/cart/cart.php line 54

    */
    $product_name = apply_filters( ‘woocommerce_cart_item_name’, $_product->get_name(), $cart_item, $cart_item_key );

    if ( $_product && $_product->exists() && $cart_item[‘quantity’] > 0 && apply_filters( ‘woocommerce_cart_item_visible’, true, $cart_item, $cart_item_key ) ) {
    $product_permalink = apply_filters( ‘woocommerce_cart_item_permalink’, $_product->is_visible() ? $_product->get_permalink( $cart_item ) : ”, $cart_item, $cart_item_key );
    ?>

  • /templates/cart/mini-cart.php line 43

    */
    $product_name = apply_filters( ‘woocommerce_cart_item_name’, $_product->get_name(), $cart_item, $cart_item_key );
    $thumbnail = apply_filters( ‘woocommerce_cart_item_thumbnail’, $_product->get_image(), $cart_item, $cart_item_key );
    $product_price = apply_filters( ‘woocommerce_cart_item_price’, WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key );
    $product_permalink = apply_filters( ‘woocommerce_cart_item_permalink’, $_product->is_visible() ? $_product->get_permalink( $cart_item ) : ”, $cart_item, $cart_item_key );
    ?>

  • Share this: