PHP 클래스 Papi_Page_Type, papi

상속: extends Papi_Page_Type_Meta
파일 보기 프로젝트 열기: wp-papi/papi 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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.

보호된 프로퍼티들

프로퍼티 타입 설명
$remove_meta_boxes array Remove meta boxes.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
get_post_type_supports ( ) : array Get post type supports that will be removed.
setup_post_types ( ) Setup post types array.

메소드 상세

__construct() 공개 메소드

Load a page type by the file.
public __construct ( string $file_path = '' )
$file_path string

allowed() 공개 메소드

Determine if the page type is allowed by capabilities and post type.
public allowed ( ) : boolean
리턴 boolean

display() 공개 메소드

Should the Page Type be displayed in WordPress admin or not?
public display ( string $post_type ) : boolean
$post_type string
리턴 boolean

get_body_classes() 공개 메소드

Get body css classes.
public get_body_classes ( ) : array
리턴 array

get_child_types() 공개 메소드

Get child page types that lives under the current page type.
public get_child_types ( ) : array
리턴 array

get_labels() 공개 메소드

Get labels that should be changed when using fill_labels option.
public get_labels ( ) : array
리턴 array

get_post_type() 공개 메소드

Get post type.
public get_post_type ( ) : string
리턴 string

get_post_type_supports() 보호된 메소드

Get post type supports that will be removed.
protected get_post_type_supports ( ) : array
리턴 array

get_thumbnail() 공개 메소드

Get page type image thumbnail.
public get_thumbnail ( ) : string
리턴 string

has_post_type() 공개 메소드

Check if the given post is allowed to use the page type.
public has_post_type ( string $post_type ) : boolean
$post_type string
리턴 boolean

remove_meta_boxes() 공개 메소드

Remove meta boxes.
public remove_meta_boxes ( )

remove_post_type_support() 공개 메소드

Remove post type support action.

setup() 공개 메소드

Setup page type.
public setup ( )

setup_post_types() 보호된 메소드

Setup post types array.
protected setup_post_types ( )

프로퍼티 상세

$capabilities 공개적으로 프로퍼티

Capabilities list.
public array $capabilities
리턴 array

$child_types 공개적으로 프로퍼티

The page types that lives under this page type.
public array $child_types
리턴 array

$description 공개적으로 프로퍼티

The description of the page type.
public string $description
리턴 string

$fill_labels 공개적으로 프로퍼티

Fill labels.
public bool $fill_labels
리턴 boolean

$labels 공개적으로 프로퍼티

Labels, the same labels that post type object uses.
public array $labels
리턴 array

$post_type 공개적으로 프로퍼티

The post types to register the page type with.
public array $post_type
리턴 array

$remove_meta_boxes 보호되어 있는 프로퍼티

Remove meta boxes.
protected array $remove_meta_boxes
리턴 array

$show_page_attributes 공개적으로 프로퍼티

Show page attributes box.
public bool $show_page_attributes
리턴 boolean

$show_page_template 공개적으로 프로퍼티

Show page template dropdown.
public bool $show_page_template
리턴 boolean

$standard_type 공개적으로 프로퍼티

Show standard page type or not.
public bool $standard_type
리턴 boolean

$switcher 공개적으로 프로퍼티

Show page type switcher.
public bool $switcher
리턴 boolean

$template 공개적으로 프로퍼티

The template of the page type.
public string $template
리턴 string

$thumbnail 공개적으로 프로퍼티

The page type thumbnail.
public string $thumbnail
리턴 string

$type 공개적으로 프로퍼티

The type name.
public string $type
리턴 string