WordPress判断文章类型是否支持层级函数:is_post_type_hierarchical

WordPress函数is_post_type_hierarchical用于判断指定文章类型是否支持层级。

is_post_type_hierarchical( string $post_type )

函数参数

$post_type

字符串

文章类型名称

扩展阅读

is_post_type_hierarchical()函数位于:wp-includes/post.php

相关函数:

阿里云