um_checkbox_field_options

Hook type

Filter

Description

Extend checkbox options

Parameters

$options

(array) Checkbox Options

$data

(array) Field Data

Usage

add_filter( 'um_checkbox_field_options', 'function_name', 10, 2 );

Examples

<?php
add_filter( 'um_checkbox_field_options', 'my_checkbox_options', 10, 2 );
function my_checkbox_options( $options, $data ) {
    // your code here
return $options;
}
?>

Change Log

Since: 2.0

Source

um_checkbox_field_options is located in includes/core/class-fields.php::line 2871