bbp_is_single_forum

  • apply_filters( 'bbp_is_single_forum', $retval )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-template.php :: Trac Source Line: 126
      function bbp_is_single_forum() {
      
      	// Assume false
      	$retval = false;
      
      	// Single and a match
      	if ( is_singular( bbp_get_forum_post_type() ) || bbp_is_query_name( 'bbp_single_forum' ) )
      		$retval = true;
      
      	return (bool) apply_filters( 'bbp_is_single_forum', $retval );
      }
      
      /**
       * Check if current page is a bbPress topic
       *
       * @since bbPress (r2549)
       *
       * @param int $post_id Possible post_id to check
       * @uses bbp_get_topic_post_type() To get the topic post type
       * @uses get_post_type() To get the post type of the post id
      

Comments are closed.