Class Papi_Property_Flexible
Flexible repeater property that can repeat multiple properties with different properties per layout.
- Papi_Core_Property
-
Papi_Property
-
Papi_Property_Repeater
-
Papi_Property_Flexible
Located at properties/class-papi-property-flexible.php
public
boolean
|
|
public
array
|
#
format_value( mixed $values, string $repeater_slug, integer $post_id )
Format the value of the property before it's returned to WordPress admin or the site. |
protected
boolean
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
array
|
#
get_results( integer $value, string $repeater_slug, integer $post_id )
Get results from the database. |
protected
array
|
|
public
array
|
#
load_value( mixed $value, string $repeater_slug, integer $post_id )
Change value after it's loaded from the database and populate every property in the flexible with the right property type. |
protected
array
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
|
protected
|
render(),
render_description_html(),
render_hidden_html(),
render_label_html(),
render_property_html(),
render_row_html(),
render_rules_json()
|
public
string
|
$convert_type
The convert type. |
#
'array'
|
protected
integer
|
$counter
Flexible repeater counter number. |
#
0
|
public
array
|
$default_value
The default value. |
#
[]
|
protected
array
|
$exclude_properties
Exclude properties that is not allowed in a repeater. |
#
['flexible', 'repeater']
|
protected
string
|
$layout_key
The layout key. |
#
'_layout'
|
$conditional,
$default_options,
$display
|