Plugin Initialization on BP Links
-
Having some issues getting plugins to initiatize on any BP generated link. Wondering if anyone has some clues! Recently Andy changed the priority on which bp_catch_uri comes up and it seems to be trumping my plugins now on any BP generated pages.
The plugin in question is a “members-only” plugin that checks if a user is logged in and if not, gives them the login page. The action that is loaded is:
add_action('init', 'members_only_init');
Since that loads after template_loaded, I tried that:
add_action('template_loaded', 'members_only_init');
Still didn’t work, so I even tried to go to the very first loaded action!
add_action('plugins_loaded', 'members_only_init');
Changing priority on any of these doesn’t help.
Afraid to say that it must be something else that is trumping my plugin from loading. It works on pages that bp_catch_uri isn’t loading including the main home page, any actual blog link (off the “news” page) and all blog pages on the network. Just not the BP pages.
Plugin in question if you want to look at it is:
http://wordpress.org/extend/plugins/members-only/
If anyone has a clue on this, let me know!
- The topic ‘Plugin Initialization on BP Links’ is closed to new replies.