'wp' action not firing on all pages?
-
I’m writing a plugin that uses bp_core_add_message to give feedback. The message is being written to the cookie but for some reason wasn’t showing up on the screen after bp_core_redirect. I traced the problem a bit and found out that bp_core_setup_message (in bp_core.php), which is hooked to ‘wp’, is not firing on the necessary pages.
So I built a little function that echoes a message and hooked it to ‘wp’. Turns out that it’s only working on the front page of the installation (the blog view) and blog pages – none of the directory, groups, members pages etc. When I changed bp_core_setup_message to activate on ‘init’, the messages were loaded on all BP pages, as expected – so I don’t think it’s a problem with that function in particular.
Is it a bug or a peculiarity of my setup? Or am I missing something?
WPMU 2.9.2, BP trunk (rev 2889).
- The topic ‘'wp' action not firing on all pages?’ is closed to new replies.