Property | Type | Description | |
---|---|---|---|
$capabilities | array | Capabilities list. | |
$child_types | array | The page types that lives under this page type. | |
$description | string | The description of the page type. | |
$fill_labels | boolean | Fill labels. | |
$labels | array | Labels, the same labels that post type object uses. | |
$post_type | array | The post types to register the page type with. | |
$show_page_attributes | boolean | Show page attributes box. | |
$show_page_template | boolean | Show page template dropdown. | |
$show_permalink | boolean | Show permalink edit box. | |
$standard_type | boolean | Show standard page type or not. | |
$switcher | boolean | Show page type switcher. | |
$template | string | The template of the page type. | |
$thumbnail | string | The page type thumbnail. | |
$type | string | The type name. |
Property | Type | Description | |
---|---|---|---|
$remove_meta_boxes | array | Remove meta boxes. |
Method | Description | |
---|---|---|
__construct ( string $file_path = '' ) | The constructor. | |
allowed ( ) : boolean | Determine if the page type is allowed by capabilities and post type. | |
display ( string $post_type ) : boolean | Should the Page Type be displayed in WordPress admin or not? | |
get_body_classes ( ) : array | Get body css classes. | |
get_child_types ( ) : array | Get child page types that lives under the current page type. | |
get_labels ( ) : array | Get labels that should be changed when using fill_labels option. | |
get_post_type ( ) : string | Get post type. | |
get_thumbnail ( ) : string | Get page type image thumbnail. | |
has_post_type ( string $post_type ) : boolean | Check if the given post is allowed to use the page type. | |
remove_meta_boxes ( ) | Remove meta boxes. | |
remove_post_type_support ( ) | Remove post type support action. | |
setup ( ) | Setup page type. |
Method | Description | |
---|---|---|
get_post_type_supports ( ) : array | Get post type supports that will be removed. | |
setup_post_types ( ) | Setup post types array. |
public __construct ( string $file_path = '' ) | ||
$file_path | string |
public get_body_classes ( ) : array | ||
return | array |
public get_child_types ( ) : array | ||
return | array |
public get_labels ( ) : array | ||
return | array |
protected get_post_type_supports ( ) : array | ||
return | array |
public get_thumbnail ( ) : string | ||
return | string |
public has_post_type ( string $post_type ) : boolean | ||
$post_type | string | |
return | boolean |
public remove_post_type_support ( ) |
public array $child_types | ||
return | array |
public string $description | ||
return | string |
public array $labels | ||
return | array |
public array $post_type | ||
return | array |
protected array $remove_meta_boxes | ||
return | array |
public bool $show_page_attributes | ||
return | boolean |
public bool $show_page_template | ||
return | boolean |
public bool $show_permalink | ||
return | boolean |
public bool $standard_type | ||
return | boolean |