函数原型
privacy_ping_filter( mixed $sites ): mixed
函数描述
Checks whether blog is public before returning sites.
是否弃用
未弃用
函数参数
-
$sites
mixed
Required - Will return if blog is public, will not return if not public.
函数返回值
mixed Empty string if blog is not public, returns $sites, if site is public.
函数位置
File: wp-includes/comment.php.
函数源码
function privacy_ping_filter( $sites ) {
if ( '0' != get_option( 'blog_public' ) ) {
return $sites;
} else {
return '';
}
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |

