Property | Type | Description | |
---|---|---|---|
$options | array | callable | Stores the field options (if any) |
Method | Description | |
---|---|---|
add_options ( array | callable $options ) | Add new options to this field. | |
get_options ( ) : array | callable | Retrieve the current options. | |
parse_options ( array | callable $options ) : array | Changes the options array structure. This is needed to keep the array items order when it is JSON encoded. | |
set_options ( array | callable $options ) | Set the options of this field. |
Method | Description | |
---|---|---|
load_options ( ) | Check if there are callbacks and populate the options |
public add_options ( array | callable $options ) | ||
$options | array | callable |
public get_options ( ) : array | callable | ||
return | array | callable | $options |
protected load_options ( ) |
public set_options ( array | callable $options ) | ||
$options | array | callable |