Bypass Force Login code question
-
To the provided Bypass Login code, I added only the below absolute URL to bypass login prompt when the sweetbriar.org/calendar. Is syntax or location correct? This code was then inserted to the bottom of the existing functions.php w/in my Activation theme folder. When testing the URL in the browser nothing rendered.
———————————————-
/**
* Bypass Force Login to allow for exceptions.
*
* @param bool $bypass Whether to disable Force Login. Default false.
* @return bool
*/
function my_forcelogin_bypass( $bypass ) {
if ( https://sweetbriarfarms.org/calendar/ ) {
$bypass = true;
}
return $bypass;
}
add_filter( ‘v_forcelogin_bypass’, ‘my_forcelogin_bypass’ );
——————————————
- The topic ‘Bypass Force Login code question’ is closed to new replies.