Метод |
Описание |
|
__construct ( ) |
Create a new helper. |
|
add_templates ( object $object ) |
Adds the field/container template(s) to the templates stack. |
|
expand_nested_field ( array $input_groups, array $row, array $field_name ) : array |
Recursively expand the subfields of a complex field. |
|
get_comment_meta ( integer $id, string $name, string $type = null ) : mixed |
Retrieve comment meta field for a comment. |
|
get_complex_field_regex ( string $field_name, array $group_names = [], array $field_names = [] ) : string |
Build the regex for parsing a certain complex field. |
|
get_complex_fields ( string $type, string $name, integer $id = null ) : array |
Retrieve the complex field data for a certain field. |
|
get_field_value ( string $data_type, string $name, string $type = null, integer $id = null ) : mixed |
Retrieve a certain field value from the database. |
|
get_field_value_by_store ( string $store_type, string $name, integer $id = null ) : mixed |
Retrieve a certain field value from the database. |
|
get_json_data ( ) : array |
Retrieve containers and sidebars for use in the JS. |
|
get_post_meta ( integer $id, string $name, string $type = null ) : mixed |
Retrieve post meta field for a post. |
|
get_term_meta ( integer $id, string $name, string $type = null ) : mixed |
Retrieve term meta field for a term. |
|
get_the_post_meta ( string $name, string $type = null ) : mixed |
Shorthand for get_post_meta(). |
|
get_theme_option ( string $name, string $type = null ) : mixed |
Retrieve theme option field value. |
|
get_user_meta ( integer $id, string $name, string $type = null ) : mixed |
Retrieve user meta field for a user. |
|
init_containers ( ) |
Initialize containers. |
|
init_scripts ( ) |
Initialize main scripts |
|
ksort_recursive ( &$array, integer $sort_flags = SORT_REGULAR ) : array |
Recursive sorting function by array key. |
|
load_textdomain ( ) |
Load the plugin textdomain. |
|
maybe_old_relationship_field ( mixed $value ) : mixed |
Detect if using the old way of storing the relationship field values. |
|
parse_relationship_field ( string $raw_value = '', string $type = '' ) : array |
Parse the raw value of the relationship and association fields. |
|
preg_quote_array ( array $pieces, string $glue = '|' ) : string |
Build a string of concatenated pieces for an OR regex. |
|
print_json_data_script ( ) |
Print the carbon JSON data script. |
|
trigger_fields_register ( ) |
Register containers and fields. |
|