bbp_is_site_public

  • apply_filters( 'bbp_is_site_public', $public, $site_id )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-template.php :: Trac Source Line: 59
      function bbp_is_site_public( $site_id = 0 ) {
      
      	// Get the current site ID
      	if ( empty( $site_id ) )
      		$site_id = get_current_blog_id();
      
      	// Get the site visibility setting
      	$public = get_blog_option( $site_id, 'blog_public', 1 );
      
      	return (bool) apply_filters( 'bbp_is_site_public', $public, $site_id );
      }
      
      /**
       * Check if current page is a bbPress forum
       *
       * @since bbPress (r2549)
       *
       * @param int $post_id Possible post_id to check
       * @uses bbp_get_forum_post_type() To get the forum post type
       * @return bool True if it's a forum page, false if not
      

Comments are closed.