mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06:36 +09:00
Add new filter hook 'um_fields_options_enable_pairs__{$key}'
This commit is contained in:
@@ -1824,6 +1824,8 @@ if ( ! class_exists( 'Fields' ) ) {
|
||||
|
||||
$output .= '<select '.$disabled.' '.$select_original_option_value.' '.$disabled_by_parent_option.' name="'.$form_key.'" id="'.$form_key.'" data-validate="'.$validate.'" data-key="'.$key.'" class="'.$this->get_class($key, $data, $class).'" style="width: 100%" data-placeholder="'.$placeholder.'" '.$atts_ajax.'>';
|
||||
|
||||
$enable_options_pair = apply_filters("um_fields_options_enable_pairs__{$key}", false );
|
||||
|
||||
if( ! $has_parent_option ){
|
||||
if ( isset($options) && $options == 'builtin'){
|
||||
$options = UM()->builtin()->get ( $filter );
|
||||
|
||||
Reference in New Issue
Block a user