Method |
Description |
|
__construct ( ) |
The constructor. |
|
__get ( string $key ) : mixed |
Get option value dynamic. |
|
__isset ( string $key ) : boolean |
Check if options value exists or not. |
|
__set ( string $key, mixed $value ) |
Set options value dynamic. |
|
__toString ( ) : string |
Get a string representation of the object. |
|
current_user_can ( ) : boolean |
Determine if the current user has capabilities rights. |
|
delete_value ( string $slug, integer $post_id, string $type ) : boolean |
Delete value from the database. |
|
disabled ( ) : boolean |
Determine if the property is disabled or not. |
|
display ( ) : boolean |
Determine if the property should be displayed. |
|
factory ( ) : null | object |
Create a new instance of the given type or a
empty core property if no type is given. |
|
format_value ( mixed $value, string $slug, integer $post_id ) : mixed |
Format the value of the property before it's returned
to WordPress admin or the site. |
|
get_child_properties ( ) : array |
Get child properties from items in the settings array. |
|
get_child_property ( string $slug, array $items = [] ) : Papi_Core_Property | null |
Get child property. |
|
get_convert_type ( ) : string |
Get convert type. |
|
get_default_settings ( ) : array |
Get default settings. |
|
get_import_settings ( ) : array |
Get import settings. |
|
get_meta_type ( ) : string |
Get meta type from the store or the default one. |
|
get_option ( string $key ) : mixed |
Get option value. |
|
get_options ( ) : stdClass |
Get the current property options object. |
|
get_post_id ( ) : integer |
Get post id. |
|
get_rules ( ) : array |
Get conditional rules. |
|
get_setting ( string $key, mixed $default = null ) : stdClass |
Get setting value. |
|
get_settings ( ) : stdClass |
Get custom property settings. |
|
get_slug ( boolean $remove_prefix = false ) : string |
Get property slug. |
|
get_store ( ) : Papi_Core_Meta_Store | null |
Get the store that the property will get data from. |
|
get_value ( ) : mixed |
Get value, no database connections here. |
|
html_id ( object | string $suffix = '', integer $row = null ) : string |
Get the html id attribute value. |
|
html_name ( array | object $sub_property = null, integer $row = null ) : string |
Get html name for property with or without sub property and row number. |
|
import_setting ( string $key, mixed $default = null ) : mixed |
Get the import settings. |
|
import_settings ( ) : object |
Get the import settings. |
|
import_value ( mixed $value, string $slug, integer $post_id ) : mixed |
Import value to the property. |
|
load_value ( mixed $value, string $slug, integer $post_id ) : mixed |
Change value after it's loaded from the database. |
|
match_slug ( string $slug ) : boolean |
Match property slug with given slug value. |
|
register ( string $type = 'post' ) : boolean |
Register property with: |
|
register_meta_sanitize_callback ( mixed $value ) : mixed |
No need for this in Papi, since this is handle different. |
|
render_ajax_request ( ) |
Render AJAX request. |
|
render_is_allowed_by_rules ( array $rules = [] ) : boolean |
Check if the property is allowed
to render by the conditional rules. |
|
rest_prepare_value ( mixed $value ) : mixed |
Prepare property value for REST API response. |
|
set_option ( string $key, mixed $value ) |
Set property option value. |
|
set_options ( array | object $options = [] ) |
Set the current property options object. |
|
set_post_id ( integer $post_id ) |
Set post id. |
|
set_setting ( string $key, mixed $value ) |
Set property setting value. |
|
set_store ( Papi_Core_Meta_Store $store ) |
Set the store that the property will get data from. |
|
update_value ( mixed $value, string $slug, integer $post_id ) : mixed |
Update value before it's saved to the database. |
|