Update class-wc-meta-box-coupon-data.php

Introduce `woocommerce_coupon_data_panels` action.

If someone wants to add a new tab to the Coupons data meta box, they can use the `woocommerce_coupon_data_tabs` filter to register a new tab. These tabs accept a `target` key that lets you specify the `div` ID to reveal when the tab is clicked on. It turns out, however, that there is no way to actually add the `div` to the page, making the filter for custom tabs only good for removing tabs.
This commit is contained in:
Pippin Williamson 2014-05-10 11:48:37 -04:00 committed by Mike Jolley
parent 10c1a1882f
commit a059290fa8
1 changed files with 1 additions and 0 deletions

View File

@ -201,6 +201,7 @@ class WC_Meta_Box_Coupon_Data {
do_action( 'woocommerce_coupon_options_usage_limit' );
?></div>
<?php do_action( 'woocommerce_coupon_data_panels' ); ?>
<div class="clear"></div>
</div>
<?php