Skip to main content
6 events
when toggle format what by license comment
Sep 3, 2012 at 17:51 vote accept Paul T.
Sep 3, 2012 at 17:50 comment added Paul T. Tried it in the functions.php page instead of bp-custom.php with the wp filter and it works like a charm! Thanks! :)
Aug 20, 2012 at 3:27 comment added Milo I'm not familiar with BuddyPress, but it's possibly an issue of priority. You can inspect the global $wp_filter to see if BP is adding its own filter, or try altering priority.
Aug 20, 2012 at 1:58 comment added Paul T. It seems that the code is never run at all. I tried the following code to test for that: add_filter( 'template_include', 'hide_page_template_include', 1, 1 ); function hide_page_template_include( $template ) { return locate_template( '404.php' ); } Nothing happens at all, so it seems that this does not work on BuddyPress. (The expected behavior was for it to print a 404 error page for any page that is called.)
Aug 20, 2012 at 1:57 comment added Paul T. I tried to add this filter to the functions.php and to the bp-custom.php files but neither seem to work. Are you sure this is supposed to work on BuddyPress?
Aug 18, 2012 at 14:40 history answered Milo CC BY-SA 3.0