This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* No copiar esta linea */ | |
// Add new field - Coupon usage restriction tab | |
function archtkt_woocommerce_coupon_options_usage_restriction( $coupon_get_id, $coupon ) { | |
woocommerce_wp_text_input( array( | |
'id' => 'customer_user_role', | |
'label' => __( 'User role restrictions', 'woocommerce' ), | |
'placeholder' => __( 'No restrictions', 'woocommerce' ), | |
'description' => __( 'List of allowed user roles. Separate user roles with commas.', 'woocommerce' ), | |
'desc_tip' => true, |
OlderNewer