Class Papi_Core_Property
Core class that implements a Papi property.
Direct known subclasses
Indirect known subclasses
Papi_Property_Bool
,
Papi_Property_Checkbox
,
Papi_Property_Gallery
,
Papi_Property_Group
,
Papi_Property_Hidden
,
Papi_Property_Html
,
Papi_Property_Image
,
Papi_Property_Link
,
Papi_Property_Number
,
Papi_Property_Post
,
Papi_Property_Radio
,
Papi_Property_Reference
,
Papi_Property_Color
,
Papi_Property_Relationship
,
Papi_Property_Repeater
,
Papi_Property_String
,
Papi_Property_Term
,
Papi_Property_Text
,
Papi_Property_Url
,
Papi_Property_User
,
Papi_Property_Datetime
,
Papi_Property_Divider
,
Papi_Property_Dropdown
,
Papi_Property_Editor
,
Papi_Property_Email
,
Papi_Property_File
,
Papi_Property_Flexible
Methods summary
public
|
|
public
mixed
|
|
public
boolean
|
|
public
|
|
public static
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public static
object
|
|
public
mixed
|
#
format_value( mixed $value, string $slug, integer $post_id )
Format the value of the property before it's returned to WordPress admin or the site. |
public
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
string
|
|
public
mixed
|
|
public
stdClass
|
|
public
|
|
public
integer
|
|
public
array
|
|
public
stdClass
|
|
public
stdClass
|
|
public
string
|
|
public
mixed
|
|
public
string
|
|
public
string
|
|
public
mixed
|
|
public
object
|
|
public
mixed
|
|
public
mixed
|
#
load_value( mixed $value, string $slug, integer $post_id )
Change value after it's loaded from the database. |
public
boolean
|
|
protected
mixed
|
|
public
|
|
public
boolean
|
#
render_is_allowed_by_rules( array $rules = [] )
Check if the property is allowed to render by the conditional rules. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
public
mixed
|
#
update_value( mixed $value, string $slug, integer $post_id )
Update value before it's saved to the database. |
public
string
|
Properties summary
protected
|
$conditional
The conditional class. |
|
public
string
|
$convert_type
The convert type. |
#
'string'
|
protected
array
|
$default_options
Default options. |
#
[
'after_class' => '',
'after_html' => '',
'before_class' => '',
'before_html' => '',
'capabilities' => [],
'default' => null,
'description' => '',
'disabled' => false,
'display' => true,
'lang' => false,
'layout' => 'horizontal', // or 'vertical'
'overwrite' => false,
'post_type' => '',
'raw' => false,
'required' => false,
'rules' => [],
'settings' => [],
'sidebar' => true,
'slug' => '',
'sort_order' => -1,
'title' => '',
'type' => '',
'value' => null
]
|
public
null
|
$default_value
Default value. |
|
protected
boolean
|
$display
Display the property in WordPress admin. |
#
true
|
public
boolean
|
$tab
Determine if is in a tab. |
#
false
|