bbp_is_topic

  • apply_filters( 'bbp_is_topic', $retval, $post_id )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-template.php :: Trac Source Line: 148
      function bbp_is_topic( $post_id = 0 ) {
      
      	// Assume false
      	$retval = false;
      
      	// Supplied ID is a topic
      	if ( !empty( $post_id ) && ( bbp_get_topic_post_type() == get_post_type( $post_id ) ) )
      		$retval = true;
      
      	return (bool) apply_filters( 'bbp_is_topic', $retval, $post_id );
      }
      
      /**
       * Viewing a single topic
       *
       * @since bbPress (r3338)
       *
       * @uses is_single()
       * @uses bbp_get_topic_post_type()
       * @uses get_post_type()
      

Comments are closed.