Revert "Add new filter hook 'um_fields_options_enable_pairs__{$key}'"

This reverts commit 63a5c9dcb4.
This commit is contained in:
Champ Camba
2017-10-03 22:55:33 +08:00
parent a714be2d5c
commit 4d6853a4e7
-2
View File
@@ -1885,8 +1885,6 @@
$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 );