mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 06:03:38 +09:00
Added country and type filter hooks
This commit is contained in:
@@ -919,6 +919,8 @@ class UM_Fields {
|
||||
}
|
||||
}
|
||||
|
||||
$type = apply_filters("um_hook_for_field_{$type}", $type );
|
||||
|
||||
/* Begin by field type */
|
||||
switch( $type ) {
|
||||
|
||||
@@ -1457,6 +1459,8 @@ class UM_Fields {
|
||||
}
|
||||
|
||||
if (!isset($options)){
|
||||
$options = apply_filters("um_multiselect_options_{$data['type']}", $options, $data );
|
||||
|
||||
$options = $ultimatemember->builtin->get ( 'countries' );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user