bbp_template_include

Hook: add_filter: bbp_template_include instances (2)

  • add_filter( 'bbp_template_include', 'bbp_template_include_theme_supports', 2, 1 )
    $tag: bbp_template_include
    $function_to_add: bbp_template_include_theme_supports
    $priority: 2
    $accepted_args: 1

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 266
      /** FILTERS *******************************************************************/
      
      /**
       * Template Compatibility
       *
       * If you want to completely bypass this and manage your own custom bbPress
       * template hierarchy, start here by removing this filter, then look at how
       * bbp_template_include() works and do something similar. :)
       */
      add_filter( 'bbp_template_include', 'bbp_template_include_theme_supports', 2, 1 );
      add_filter( 'bbp_template_include', 'bbp_template_include_theme_compat',   4, 2 );
      
      /**
       * Feeds
       *
       * bbPress comes with a number of custom RSS2 feeds that get handled outside
       * the normal scope of feeds that WordPress would normally serve. To do this,
       * we filter every page request, listen for a feed request, and trap it.
       */
      add_filter( 'request', 'bbp_request_feed_trap' );
      
  • add_filter( 'bbp_template_include', 'bbp_template_include_theme_compat',   4, 2 )
    $tag: bbp_template_include
    $function_to_add: bbp_template_include_theme_compat
    $priority: 4
    $accepted_args: 2

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 267
      /**
       * Template Compatibility
       *
       * If you want to completely bypass this and manage your own custom bbPress
       * template hierarchy, start here by removing this filter, then look at how
       * bbp_template_include() works and do something similar. :)
       */
      add_filter( 'bbp_template_include', 'bbp_template_include_theme_supports', 2, 1 );
      add_filter( 'bbp_template_include', 'bbp_template_include_theme_compat',   4, 2 );
      
      /**
       * Feeds
       *
       * bbPress comes with a number of custom RSS2 feeds that get handled outside
       * the normal scope of feeds that WordPress would normally serve. To do this,
       * we filter every page request, listen for a feed request, and trap it.
       */
      add_filter( 'request', 'bbp_request_feed_trap' );
      

Comments are closed.