Wordpress 钩子:pub_priv_sql_capability
文章目录
警告:此钩子已被弃用。钩子从“有点无用”转变为“完全无用”。
在生成用于按作者获取帖子的SQL时,过滤读取自定义帖子类型的私人帖子的功能。
原型
apply_filters( 'pub_priv_sql_capability', string $cap )
参数
$cap
(string)
能力。
源文件
路径:wp-includes/post.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/pub_priv_sql_capability/
文章作者 iBllex
上次更新 2019-02-14