Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Authentication check on non-WP page


Michael3185
Member

@michael3185

I use this to stop people accessing the profile page unless logged-in;

<?php if ( !bb_is_user_logged_in() ) {
show_error_page('log-in to access profiles');
exit;
} ?>

Something along those line should work with a link to somewhere else, assuming they’re in a bbPress page to begin with.

Skip to toolbar