Methods summary
protected
|
#
box( mixed $file_or_options = [], array $properties = [] )
Add new meta box with properties.
Add new meta box with properties.
Parameters
- $file_or_options
- $properties
|
public
boolean
|
#
display( string $post_type )
Should the Page Type be displayed in WordPress admin or not?
Should the Page Type be displayed in WordPress admin or not?
Parameters
Returns
boolean
|
public
array
|
#
get_boxes( )
Get boxes from the page type.
Get boxes from the page type.
Returns
array
|
public
string
|
|
protected
object
|
#
get_child_property( array $items, string $slug )
Get child property.
Parameters
Returns
object
|
public
null|Papi_Property
|
#
get_property( string $slug, string $child_slug = '' )
Get property from page type.
Get property from page type.
Parameters
Returns
|
public
|
#
setup( )
This function will setup all meta boxes.
This function will setup all meta boxes.
|
protected
null|Papi_Property
|
#
property( array|string $file_or_options = [], array $values = [] )
Add new property to the page using array or rendering property template file.
Add new property to the page using array or rendering property template file.
Parameters
Returns
|
protected
|
#
remove( array $post_type_supports = [] )
Remove post type support. Runs once, on page load.
Remove post type support. Runs once, on page load.
Parameters
|
public
|
|
public
|
|
protected
array
|
#
tab( mixed $file_or_options = [], array $properties = [] )
Add a new tab.
Parameters
- $file_or_options
- $properties
Returns
array
|
protected
array
|
#
template( string $file, array $values = [] )
Load template file.
Parameters
Returns
array
|