Changeset 3607 for branches/plugin/bbp-includes/bbp-core-hooks.php
- Timestamp:
- 11/14/2011 03:50:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-core-hooks.php
r3589 r3607 37 37 add_action( 'generate_rewrite_rules', 'bbp_generate_rewrite_rules', 10 ); 38 38 add_action( 'wp_enqueue_scripts', 'bbp_enqueue_scripts', 10 ); 39 add_action( 'template_redirect', 'bbp_template_redirect', 10 ); 39 40 add_filter( 'template_include', 'bbp_template_include', 10 ); 40 41 … … 228 229 add_action( 'bbp_activation', 'flush_rewrite_rules' ); 229 230 add_action( 'bbp_deactivation', 'flush_rewrite_rules' ); 231 232 // Redirect user if needed 233 add_action( 'bbp_template_redirect', 'bbp_check_user_edit', 10 ); 234 add_action( 'bbp_template_redirect', 'bbp_check_forum_edit', 10 ); 235 add_action( 'bbp_template_redirect', 'bbp_check_topic_edit', 10 ); 236 add_action( 'bbp_template_redirect', 'bbp_check_reply_edit', 10 ); 237 add_action( 'bbp_template_redirect', 'bbp_check_topic_tag_edit', 10 ); 230 238 231 239 /** … … 741 749 } 742 750 751 /** Theme Permissions *********************************************************/ 752 753 /** 754 * The main action used for redirecting bbPress theme actions that are not 755 * permitted by the current_user 756 * 757 * @since bbPress (r3605) 758 * 759 * @uses do_action() 760 */ 761 function bbp_template_redirect() { 762 do_action( 'bbp_template_redirect' ); 763 } 764 743 765 ?>
Note: See TracChangeset
for help on using the changeset viewer.