woocommerce_coupon_code_generator_prefix

woocommerce_coupon_code_generator_prefix

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_coupon_code_generator_prefix') is found 1 times:

  • /includes/admin/class-wc-admin-assets.php line 346
    					array(
    						'generate_button_text' => esc_html__( 'Generate coupon code', 'woocommerce' ),
    						'characters'           => apply_filters( 'woocommerce_coupon_code_generator_characters', 'ABCDEFGHJKMNPQRSTUVWXYZ23456789' ),
    						'char_length'          => apply_filters( 'woocommerce_coupon_code_generator_character_length', 8 ),
    						'prefix'               => apply_filters( 'woocommerce_coupon_code_generator_prefix', '' ),
    						'suffix'               => apply_filters( 'woocommerce_coupon_code_generator_suffix', '' ),
    					)
    				);
    			}
    			/* phpcs: enable */
    			if ( in_array( str_replace( 'edit-', '', $screen_id ), array( 'shop_coupon', 'product' ), true ) || $this->is_order_meta_box_screen( $screen_id ) ) {