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; ?>">
|
<li class="<?php echo $class; ?>">
|
||||||
<?php if ( $post_id ) : ?>
|
<?php if ( $post_id ) : ?>
|
||||||
<?php
|
<?php
|
||||||
$post_url = add_query_arg(
|
$post_url = apply_filters( 'woocommerce_admin_order_item_coupon_url', add_query_arg(
|
||||||
array(
|
array(
|
||||||
'post' => $post_id,
|
'post' => $post_id,
|
||||||
'action' => 'edit',
|
'action' => 'edit',
|
||||||
),
|
),
|
||||||
admin_url( 'post.php' )
|
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() ) ) ); ?>">
|
<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>
|
<span><?php echo esc_html( $item->get_code() ); ?></span>
|
||||||
|
|
Loading…
Reference in New Issue