privacy_ping_filter() WordPress Function

The privacy_ping_filter() function is a WordPress function that allows you to control whether or not your site allows trackbacks and pingbacks from other sites. This can be useful if you want to prevent spam or unwanted attention from other sites.

privacy_ping_filter( mixed $sites ) #

Checks whether blog is public before returning sites.


Parameters

$sites

(mixed)(Required)Will return if blog is public, will not return if not public.


Top ↑

Return

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


Top ↑

Source

File: wp-includes/comment.php

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


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More