bbp_is_single_topic

  • apply_filters( 'bbp_is_single_topic', $retval )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-template.php :: Trac Source Line: 172
      function bbp_is_single_topic() {
      
      	// Assume false
      	$retval = false;
      
      	// Single and a match
      	if ( is_singular( bbp_get_topic_post_type() ) || bbp_is_query_name( 'bbp_single_topic' ) )
      		$retval = true;
      
      	return (bool) apply_filters( 'bbp_is_single_topic', $retval );
      }
      
      /**
       * Check if we are viewing a topic archive.
       *
       * @since bbPress (r3251)
       *
       * @uses is_post_type_archive() To check if we are looking at the topic archive
       * @uses bbp_get_topic_post_type() To get the topic post type ID
       *
      

Comments are closed.