Reword postfix to suffix

This commit is contained in:
Gerhard 2019-07-04 09:07:02 +02:00
parent 9e2ba43d3b
commit 5d604329fc
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ jQuery(function( $ ) {
Math.floor( Math.random() * woocommerce_admin_meta_boxes_coupon.characters.length )
);
}
$result = woocommerce_admin_meta_boxes_coupon.prefix + $result + woocommerce_admin_meta_boxes_coupon.postfix;
$result = woocommerce_admin_meta_boxes_coupon.prefix + $result + woocommerce_admin_meta_boxes_coupon.suffix;
$coupon_code_field.focus().val( $result );
$coupon_code_label.addClass( 'screen-reader-text' );
}

View File

@ -283,7 +283,7 @@ if ( ! class_exists( 'WC_Admin_Assets', false ) ) :
'characters' => apply_filters( 'woocommerce_coupon_code_generator_characters', 'ABCDEFGHJKMNPQRSTUVWXYZ23456789' ),
'char_limit' => apply_filters( 'woocommerce_coupon_code_generator_character_limit', 8 ),
'prefix' => apply_filters( 'woocommerce_coupon_code_generator_prefix', '' ),
'postfix' => apply_filters( 'woocommerce_coupon_code_generator_postfix', '' ),
'suffix' => apply_filters( 'woocommerce_coupon_code_generator_suffix', '' ),
)
);
}