Свойство | Тип | Описание | |
---|---|---|---|
$show_help_tabs | Show help tabs. | ||
$show_screen_options | boolean | Show screen options. | |
$type | string | The type name. |
Свойство | Тип | Описание | |
---|---|---|---|
$boxes | array | The array of meta boxes to register. | |
$load_boxes | boolean | Load all boxes. |
Метод | Описание | |
---|---|---|
add_help_tabs ( ) | Add help tabs. | |
body_classes ( ) : array | Get custom admin body classes. | |
get_body_classes ( ) : array | Get admin body css classes. | |
get_boxes ( ) : array | Get boxes from the page type. | |
get_labels ( ) : array | Get labels that should be changed when using fill_labels option. | |
get_properties ( ) : array | Get root properties. | |
get_property ( string $slug, string $child_slug = '' ) : Papi_Property | Get property from entry type. | |
help ( ) : array | Add admin help tabs. | |
help_sidebar ( ) : boolean | Add help sidebar content. | |
setup ( ) | Setup entry type. | |
singleton ( ) : boolean | Check if the entry type is a singleton. |
Метод | Описание | |
---|---|---|
box ( mixed $file_or_options = [], array $properties = [] ) | Add new meta box with properties. | |
call_parent_register ( ) | Call parent register if it exists to collect boxes on the parent entry type. | |
convert_properties ( array | object $properties ) : array | Convert properties to properties objects. | |
merge_boxes ( array $boxes ) : array | Merge boxes with same title. | |
property ( array | string $file_or_options = [], array $values = [] ) : null | Papi_Property | Add new property to the page using array or rendering property template file. | |
tab ( mixed $file_or_options = [], array $properties = [] ) : null | Papi_Core_Tab | Add a new tab. | |
template ( string $file, array $values = [] ) : array | Load template file. |
public body_classes ( ) : array | ||
Результат | array |
protected call_parent_register ( ) |
public get_body_classes ( ) : array | ||
Результат | array |
public get_labels ( ) : array | ||
Результат | array |
public get_properties ( ) : array | ||
Результат | array |
public get_property ( string $slug, string $child_slug = '' ) : Papi_Property | ||
$slug | string | |
$child_slug | string | |
Результат | Papi_Property |
public help_sidebar ( ) : boolean | ||
Результат | boolean |
protected merge_boxes ( array $boxes ) : array | ||
$boxes | array | |
Результат | array |
protected array $boxes | ||
Результат | array |
public bool $show_screen_options | ||
Результат | boolean |