Merge pull request #19777 from bekarice/tweak/filter-used-coupon-url
Filter the used coupon URL in "edit order" screen
This commit is contained in:
commit
9a8c47740d
|
@ -121,13 +121,13 @@ if ( wc_tax_enabled() ) {
|
|||
<li class="<?php echo $class; ?>">
|
||||
<?php if ( $post_id ) : ?>
|
||||
<?php
|
||||
$post_url = add_query_arg(
|
||||
$post_url = apply_filters( 'woocommerce_admin_order_item_coupon_url', add_query_arg(
|
||||
array(
|
||||
'post' => $post_id,
|
||||
'action' => 'edit',
|
||||
),
|
||||
admin_url( 'post.php' )
|
||||
);
|
||||
), $item, $order );
|
||||
?>
|
||||
<a href="<?php echo esc_url( $post_url ); ?>" class="tips" data-tip="<?php echo esc_attr( wc_price( $item->get_discount(), array( 'currency' => $order->get_currency() ) ) ); ?>">
|
||||
<span><?php echo esc_html( $item->get_code() ); ?></span>
|
||||
|
|
Loading…
Reference in New Issue