privacy_ping_filter()

最后更新于:2021-11-27 20:47:30

privacy_ping_filter( mixed$sites)

Check 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.

源文件

文件: gc-includes/comment.php

function privacy_ping_filter( $sites ) {
	if ( '0' != get_option( 'blog_public' ) ) {
		return $sites;
	} else {
		return '';
	}
}