Uses
Uses | Description |
---|---|
wp-includes/option.php: get_option() | Retrieves an option value based on an option name. |
Check whether blog is public before returning sites.
(mixed) (Required) Will return if blog is public, will not return if not public.
(mixed) Empty string if blog is not public, returns $sites, if site is public.
File: wp-includes/comment.php
function privacy_ping_filter( $sites ) { if ( '0' != get_option( 'blog_public' ) ) { return $sites; } else { return ''; } }
Version | Description |
---|---|
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/privacy_ping_filter