프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$name | string | The name of the core type. | |
$sort_order | integer | The sort order of the core type. | |
$type | string | The type name. Used for WP CLI. |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_class_name | string | The page type class name. | |
$_file_path | string | The file path of the core type file. |
메소드 | 설명 | |
---|---|---|
__construct ( string $file_path = '' ) | The constructor. | |
allowed ( ) : boolean | Determine if the entry type is allowed. | |
boot ( ) | Boot page type. | |
get_class_name ( ) : string | Get the page type class name with namespace if exists. | |
get_file_path ( ) : string | Get the page type file pat.h | |
get_id ( ) : string | Get the page type identifier. | |
get_type ( ) : string | Get type name. | |
has_name ( ) : boolean | Check so we have a name on the page type. | |
match_id ( string $id ) : boolean | Check if the the given identifier match the page type identifier. | |
new_class ( ) : null | object | Create a new instance of the page type file. |
메소드 | 설명 | |
---|---|---|
get_meta ( ) : array | Get meta data from type class and merge with the parent meta data. | |
setup_actions ( ) | Setup actions. | |
setup_file ( string $file_path ) | Load the file and setup file path, file name and class name properties. | |
setup_filters ( ) | Setup filters. | |
setup_meta_data ( ) | Setup meta data. |
public __construct ( string $file_path = '' ) | ||
$file_path | string |
public get_class_name ( ) : string | ||
리턴 | string |
protected setup_file ( string $file_path ) | ||
$file_path | string |
protected string $_file_path | ||
리턴 | string |