Skip to:
Content

bbPress.org

Ticket #1524: filter-template_include.diff

File filter-template_include.diff, 628 bytes (added by greenshady, 11 years ago)

add_filter() for 'template_include'

  • bbp-core-hooks.php

     
    3535add_action( 'init',                   'bbp_init',                   10 );
    3636add_action( 'generate_rewrite_rules', 'bbp_generate_rewrite_rules', 12 );
    3737add_action( 'after_setup_theme',      'bbp_setup_theme_compat',     12 );
    38 add_action( 'template_include',       'bbp_template_include',       10 );
     38add_filter( 'template_include',       'bbp_template_include',       10 );
    3939
    4040/**
    4141 * bbp_loaded - Attached to 'plugins_loaded' above