Class Papi_Core_Property
Core class that implements a Papi property.
Direct known subclasses
Papi_PropertyIndirect known subclasses
Papi_Property_Bool, Papi_Property_Checkbox, Papi_Property_Gallery, 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_Relationship, Papi_Property_Color, 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
Located at core/class-papi-core-property.php
public
|
|
public
mixed
|
|
public
boolean
|
|
public
|
|
public static
|
|
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
mixed
|
|
public
array
|
|
public
array
|
|
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
boolean
|
|
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. |
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' => '',
'description' => '',
'disabled' => false,
'display' => true,
'lang' => false,
'overwrite' => false,
'post_type' => '',
'raw' => false,
'required' => false,
'rules' => [],
'settings' => [],
'sidebar' => true,
'slug' => '',
'sort_order' => -1,
'title' => '',
'type' => '',
'value' => ''
]
|
public
null
|
$default_value
Default value. |
|
protected
boolean
|
$display
Display the property in WordPress admin. |
#
true
|