Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Papi_Page_Type
has_post_type
Papi_Page_Type::has_post_type PHP Method
Papi_Page_Type Class Documentation
显示文件
Open project: wp-papi/papi
has_post_type()
public
method
Check if the given post is allowed to use the page type.
public
has_post_type
(
string
$post_type
) :
boolean
$post_type
string
return
boolean
public function has_post_type($post_type) { return in_array($post_type, $this->post_type, true); }
Papi_Page_Type
__construct
allowed
display
get_body_classes
get_child_types
get_labels
get_post_type
get_post_type_supports
get_thumbnail
has_post_type
remove_meta_boxes
remove_post_type_support
setup
setup_post_types