Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( function_exists( 'asedd_cf_param_product_license' ) ) {
- add_filter( 'as_edd_product_license_field_args', 'wpas_edd_sl_license_optional' );
- /**
- * Make the license field optional
- *
- * Removed the "required" attribute from the license field displayed in the ticket submission form.
- *
- * @param array $args Custom field arguments
- *
- * @return array
- */
- function wpas_edd_sl_license_optional( $args ) {
- $args['required'] = false;
- return $args;
- }
- }
- if ( function_exists( 'asedd_check_license_key' ) ) {
- /**
- * Remove license validity verification on ticket submission process
- */
- remove_filter( 'wpas_before_submit_new_ticket_checks', 'asedd_check_license_key', 10 );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement