Plugin Installation failed after including bypass
-
I tried to add the following bypass to the plugin:
/**
* 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 ( is_home() ) {
$bypass = true;
}
return $bypass;
}
add_filter( ‘v_forcelogin_bypass’, ‘my_forcelogin_bypass’ );I did this by extracting the plugin zip file, opening wp-force-login in Visual Studio Code, pasting the bypass code in at the end, and compressing the folder into a new zip file. When I attempted to upload this to WordPress I got the following error “The package could not be installed. No valid plugins were found.” Where did I go wrong?
The topic ‘Plugin Installation failed after including bypass’ is closed to new replies.