privacy_ping_filter

Check whether blog is public before returning sites.

Description

privacy_ping_filter( (mixed) $sites ); 

Parameters (1)

0. $sites (mixed)
Will return if blog is public, will not return if not public.

Usage

  1. if ( !function_exists( 'privacy_ping_filter' ) ) { 
  2. require_once ABSPATH . WPINC . '/comment.php'; 
  3.  
  4. // Will return if blog is public, will not return if not public. 
  5. $sites = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = privacy_ping_filter($sites); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/comment.php  
  1. function privacy_ping_filter($sites) { 
  2. if ( '0' != get_option('blog_public') ) 
  3. return $sites; 
  4. else 
  5. return '';