is_post_type_viewable()
is_post_type_viewable( string|WP_Post_Type $post_type )…
is_post_type_viewable( string|WP_Post_Type $post_type )
确定是否将文章类型视为“可查看”。
Determines whether a post type is considered “viewable”.
确定是否将文章类型视为“可查看”。
Determines whether a post type is considered “viewable”.
目录锚点:#说明#参数#返回#源码
说明(Description)
对于内置的post类型(如posts和pages),将计算“public”值。对于所有其他人,将使用“publicu queryable”值。
参数(Parameters)
| 参数 | 类型 | 必填 | 说明 | 
|---|---|---|---|
| $post_type | (string | WP_Post_Type) | 必需 | Post类型名称或对象。 | 
返回(Return)
(bool)是否应将post类型视为可视。
源码(Source)
| 更新版本 | 源码位置 | 使用 | 被使用 | 
|---|---|---|---|
| 4.6.0 | wp-includes/post.php:1979 | 11 | 1 function | 
类别:WordPress 函数手册、 
		本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。
还没有任何评论,赶紧来占个楼吧!