Filter: um_select_options_pair

apply_filters( 'um_select_options_pair', $options_pair, $data ) → {bool}

Filters enable options pair by field $data.

Parameters:
Name Type Description
$options_pair bool | null

Enable pairs.

$data array

Field Data.

Since:
  • 2.0 renamed to `um_select_options_pair`
Source:
Returns:

Enable pairs. Set to true if a field requires text keys.

Type
bool
Example

Enable options pair.

function my_um_select_options_pair( $options_pair, $data ) {
    // your code here
    return $options_pair;
}
add_filter( 'um_select_options_pair', 'my_um_select_options_pair', 10, 2 );