Last active
March 23, 2022 15:53
-
-
Save KaineLabs/ba5d19e3cc2d303e49f51d337026845b to your computer and use it in GitHub Desktop.
Youzify - Change Search Members Range from Number to Select
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 | |
/** | |
* Youzify - Change Search Members Range Field type from Number to Select | |
*/ | |
add_filter( 'yzms_range_field_args', 'yzc_change_range_field_type', 10 ); | |
function yzc_change_range_field_type( $args ) { | |
// Get Field ID. | |
$field_id = 98; | |
if ( $args['id'] == $field_id ) { | |
$args['range_type'] = 'select'; | |
$args['min'] = 1; | |
$args['max'] = 90; | |
} | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment