Skip to:

Directing to a 403 Page

  • jonimueller


    With the help of this forum, I was able to solve part of an issue. We don’t want unapproved members sending messages to other registered members until they are approved. I found some code here that does this exact thing:

        if ( ! $unapproved_member ) {
            bp_core_remove_nav_item( 'friends' ); //removes the tab friends
            bp_core_remove_nav_item( 'messages' ); //removes the tab messages
            bp_core_remove_nav_item( 'reviews' ); //removes the tab reviews

    However, in place of those tabs’ content, is a 404 page. I’d prefer a 403 page in its place. Any thoughts as to how to accomplish this?

    Or in the alternative, to redirect each of those tabs to one page explaining the disablement of a large portion of the site until they are approved?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar