Multisite Subsite Exceptions
-
Hi – Great plug in, thank you.
Ive added the following code in my functions.php file to whitelist certain pages on my subsites which need to be made available to public. Each subsite is a different user account and are setup as {subsite}.celebrantplanner.com.au.
The pages are all named the same in each subsite, but the code below isnt allowing anyone to access the ‘https://testuser.celebrantplanner.com.au/booking-form’ page without logging in.
What am I doing wrong or is there a better way to whitelist the pages below for each subsite?
Thanking you in advance.
CODE
function my_forcelogin_bypass( $bypass ) {
if ( is_page(‘booking-form’) || is_page(‘NOIM’) || is_page(‘check-availability’) || is_page(‘home-user’) || is_page(‘gallery-user’)|| is_page(‘wording’) ) {
$bypass = true;
}
return $bypass;
}
add_filter( ‘v_forcelogin_bypass’, ‘my_forcelogin_bypass’ );The page I need help with: [log in to see the link]
- The topic ‘Multisite Subsite Exceptions’ is closed to new replies.