Property | Type | Description | |
---|---|---|---|
$convert_type | string | The convert type. | |
$default_value | array | The default value. |
Property | Type | Description | |
---|---|---|---|
$counter | integer | Flexible repeater counter number. | |
$exclude_properties | array | Exclude properties that is not allowed in a repeater. | |
$layout_key | string | The layout key. | |
$layout_value_regex | string | Layout value regex. |
Method | Description | |
---|---|---|
delete_value ( string $slug, integer $post_id, string $type ) : boolean | Delete value from the database. | |
format_value ( mixed $values, string $repeater_slug, integer $post_id ) : array | Format the value of the property before it's returned to WordPress admin or the site. | |
load_value ( mixed $value, string $repeater_slug, integer $post_id ) : array | Change value after it's loaded from the database and populate every property in the flexible with the right property type. | |
render_ajax_request ( ) | Render AJAX request. | |
render_repeater_row_template ( ) | Render repeater row template. |
Method | Description | |
---|---|---|
get_json_id ( string $key, string $extra = '' ) : string | Generate layout slug. | |
get_layout ( string $slug ) : string | Get layout by slug. | |
get_layout_value ( string $layout ) : string | Get layout value. | |
get_results ( integer $value, string $repeater_slug, integer $post_id ) : array | Get results from the database. | |
get_settings_layouts ( ) : array | Get layouts. | |
is_layout_key ( string $key ) : boolean | Check if the given key is a valid layout key. | |
prepare_properties ( array $layouts ) : array | Prepare properties. | |
render_json_template ( string $slug ) | Render layout JSON template. | |
render_layout_input ( string $value ) | Render layout input. | |
render_properties ( array $row, array | boolean $value ) | Render properties. | |
render_repeater ( object $options ) | Render repeater html. | |
render_repeater_row ( ) | Render repeater row. | |
setup_actions ( ) | Setup actions. | |
valid_layout ( array $layout ) : boolean | Check if the layout is valid or not. |
protected get_layout ( string $slug ) : string | ||
$slug | string | |
return | string |
protected get_layout_value ( string $layout ) : string | ||
$layout | string | |
return | string |
protected get_settings_layouts ( ) : array | ||
return | array |
protected is_layout_key ( string $key ) : boolean | ||
$key | string | |
return | boolean |
protected prepare_properties ( array $layouts ) : array | ||
$layouts | array | |
return | array |
protected render_json_template ( string $slug ) | ||
$slug | string |
protected render_layout_input ( string $value ) | ||
$value | string |
protected render_repeater ( object $options ) | ||
$options | object |
public render_repeater_row_template ( ) |
protected valid_layout ( array $layout ) : boolean | ||
$layout | array | |
return | boolean |
protected array $exclude_properties | ||
return | array |
protected string $layout_value_regex | ||
return | string |