Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




privacy_ping_filter [ WordPress Function ]

privacy_ping_filter ( $sites )
Parameters:
  • (mixed) $sites Will return if blog is public, will not return if not public.
Returns:
  • (mixed) Empty string if blog is not public, returns $sites, if site is public.
Defined at:



Check whether blog is public before returning sites.

Source


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

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics