Skip to content

Commit 8ac8231

Browse files
committed
Preventing site access is now filterable to allow other plugins like Social Login to work.
1 parent a5aea68 commit 8ac8231

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

includes/actions.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,10 @@ function wpum_prevent_entire_site() {
416416
}
417417
}
418418

419+
if ( ! apply_filters( 'wpum_prevent_entire_site_access', true ) ) {
420+
return;
421+
}
422+
419423
wp_safe_redirect( $login_page );
420424
exit();
421425
}

0 commit comments

Comments
 (0)