um_{$data}_predefined_field_options

Hook type

Filter

Description

Extend Predefined Fields options. Where $data - field key.

Parameters

$options

(array) Field's Options

Usage

add_filter( 'um_{$data}_predefined_field_options', 'function_name', 10, 1 );

Examples

<?php
add_filter( 'um_{$data}_predefined_field_options', 'my_predefined_field', 10, 1 );
function my_predefined_field( $options ) {
    // your code here
return $options;
}
?>

Change Log

Since: 2.0

Source

um_{$data}_predefined_field_options is located in includes/core/class-builtin.php::line 1747