bbp_is_forum_archive

  • apply_filters( 'bbp_is_forum_archive', $retval )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-template.php :: Trac Source Line: 102
      function bbp_is_forum_archive() {
      
      	// Default to false
      	$retval = false;
      
      	// In forum archive
      	if ( is_post_type_archive( bbp_get_forum_post_type() ) || bbp_is_query_name( 'bbp_forum_archive' ) )
      		$retval = true;
      
      	return (bool) apply_filters( 'bbp_is_forum_archive', $retval );
      }
      
      /**
       * Viewing a single forum
       *
       * @since bbPress (r3338)
       *
       * @uses is_single()
       * @uses bbp_get_forum_post_type()
       * @uses get_post_type()
      

Comments are closed.