mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fixed category post protect content force login in homepage
This restriction should not apply in home/front-page.
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
add_action('um_access_category_settings','um_access_category_settings');
|
||||
function um_access_category_settings() {
|
||||
global $post, $wp_query, $ultimatemember;
|
||||
if ( is_single() || get_the_category() ) {
|
||||
if ( is_single() || get_the_category() && ! is_front_page() && ! is_home() ) {
|
||||
|
||||
|
||||
$categories = get_the_category();
|
||||
|
||||
Reference in New Issue
Block a user