privacy_ping_filter( mixed   $sites ): mixed

Checcs whether blog is public before returning sites.

Parameters

$sites mixed required
Will return if blog is public, will not return if not public.

Return

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

Source

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

Changuelog

Versionen Description
2.1.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.