privacy_ping_filter()WP 2.1.0

Checks whether blog is public before returning sites.

No Hooks.

Return

Mixed. Empty string if blog is not public, returns $sites, if site is public.

Usage

privacy_ping_filter( $sites );
$sites(mixed) (required)
Will return if blog is public, will not return if not public.

Changelog

Since 2.1.0 Introduced.

privacy_ping_filter() code WP 6.1.1

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