mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Fix retrieval of options from callback function
This commit is contained in:
@@ -95,6 +95,7 @@ if ( ! class_exists( 'um\core\Validation' ) ) {
|
||||
! empty( $fields[ $key ]['custom_dropdown_options_source'] ) &&
|
||||
function_exists( $fields[ $key ]['custom_dropdown_options_source'] ) ){
|
||||
$arr_options = call_user_func( $fields[ $key ]['custom_dropdown_options_source'] );
|
||||
$fields[ $key ]['options'] = array_keys( $arr_options );
|
||||
}
|
||||
|
||||
// Unset changed value that doesn't match the option list
|
||||
|
||||
Reference in New Issue
Block a user