woocommerce_coupon_data_tabs

This is for creating a tab panel in the admin coupon screen when creating a new coupon.

[php]
function webdav_newcoupon_data_tabs( $tabs ) {
$tabs[‘webdav_newcoupon_data’] = array(
‘label’  => __( ‘WebDav Coupon’, ‘webdav-coupon-plugin’ ),
‘target’ => ‘webdav_newcoupon_data’,
‘class’  => ‘webdav_newcoupon_data’
);
return $tabs;
}
add_filter( ‘woocommerce_coupon_data_tabs’, ‘webdav_newcoupon_data_tabs’, 100, 1 );
[/php]

 


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.