bbp_is_topic_archive

  • apply_filters( 'bbp_is_topic_archive', $retval )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-template.php :: Trac Source Line: 194
      function bbp_is_topic_archive() {
      
      	// Default to false
      	$retval = false;
      
      	// In topic archive
      	if ( is_post_type_archive( bbp_get_topic_post_type() ) || bbp_is_query_name( 'bbp_topic_archive' ) )
      		$retval = true;
      
      	return (bool) apply_filters( 'bbp_is_topic_archive', $retval );
      }
      
      /**
       * Check if current page is a topic edit page
       *
       * @since bbPress (r2753)
       *
       * @uses WP_Query Checks if WP_Query::bbp_is_topic_edit is true
       * @return bool True if it's the topic edit page, false if not
       */
      

Comments are closed.