Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,005
- How-to & Troubleshooting
- 129,527
- Creating & Extending
- 25,790
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,782
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,170
-
When hooking into template_redirect make sure that the priority is set (third arg):
`add_action(‘template_redirect’, ‘my_function’, 1);`
The priority argument defaults to 10 – BuddyPress uses a priority of 2 when hooking into template_redirect. Set the priority of your function to a number less than 2, so your hook is executed before BuddyPress catches the URL.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS