| @@ 56-59 (lines=4) @@ | ||
| 53 | echo '<span class="wpinv_email_cart_item_title">' . $item_title . '</span>'; |
|
| 54 | ||
| 55 | $summary = ''; |
|
| 56 | if ( !empty( $wpi_item ) && $wpi_item->is_package() && !empty( $item['meta']['post_id'] ) ) { |
|
| 57 | $post_link = '<a href="' . get_permalink( $item['meta']['post_id'] ) .'" target="_blank">' . (!empty($item['meta']['invoice_title']) ? $item['meta']['invoice_title'] : get_the_title( $item['meta']['post_id']) ) . '</a>'; |
|
| 58 | $summary = wp_sprintf( __( '%s: %s', 'invoicing' ), $wpi_item->get_cpt_singular_name(), $post_link ); |
|
| 59 | } |
|
| 60 | ||
| 61 | $summary = apply_filters( 'wpinv_email_invoice_line_item_summary', $summary, $item, $wpi_item, $invoice ); |
|
| 62 | if ( !empty( $summary ) ) { |
|
| @@ 1075-1078 (lines=4) @@ | ||
| 1072 | } |
|
| 1073 | $item_name = !empty($cart_item['name']) ? $cart_item['name'] : $item_name; |
|
| 1074 | ||
| 1075 | if (!empty($item) && $item->is_package() && !empty($cart_item['meta']['post_id'])) { |
|
| 1076 | $post_link = '<a href="' . get_edit_post_link( $cart_item['meta']['post_id'] ) .'" target="_blank">' . (!empty($cart_item['meta']['invoice_title']) ? $cart_item['meta']['invoice_title'] : get_the_title( $cart_item['meta']['post_id']) ) . '</a>'; |
|
| 1077 | $summary = wp_sprintf( __( '%s: %s', 'invoicing' ), $item->get_cpt_singular_name(), $post_link ); |
|
| 1078 | } |
|
| 1079 | $summary = apply_filters( 'wpinv_print_invoice_line_item_summary', $summary, $cart_item, $item, $invoice ); |
|
| 1080 | ||
| 1081 | $item_tax = ''; |
|
| @@ 1326-1329 (lines=4) @@ | ||
| 1323 | $can_remove = true; |
|
| 1324 | ||
| 1325 | $summary = ''; |
|
| 1326 | if ($wpi_item->is_package() && !empty($cart_item['meta']['post_id'])) { |
|
| 1327 | $post_link = '<a href="' . get_edit_post_link( $cart_item['meta']['post_id'] ) .'" target="_blank">' . (!empty($cart_item['meta']['invoice_title']) ? $cart_item['meta']['invoice_title'] : get_the_title( $cart_item['meta']['post_id']) ) . '</a>'; |
|
| 1328 | $summary = wp_sprintf( __( '%s: %s', 'invoicing' ), $wpi_item->get_cpt_singular_name(), $post_link ); |
|
| 1329 | } |
|
| 1330 | $summary = apply_filters( 'wpinv_admin_invoice_line_item_summary', $summary, $cart_item, $wpi_item, $invoice ); |
|
| 1331 | ||
| 1332 | $item_tax = ''; |
|