mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- small fixes for file uploader;
- added filter for include UM pages to conditional logic;
This commit is contained in:
@@ -533,12 +533,17 @@ if ( ! class_exists( 'um\core\Access' ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
//exlude from privacy UM default pages (except Members list and User(Profile) page)
|
||||
//exclude from privacy UM default pages (except Members list and User(Profile) page)
|
||||
$exclude = false;
|
||||
if ( ! empty( $post->post_type ) && $post->post_type == 'page' ) {
|
||||
if ( um_is_core_post( $post, 'login' ) || um_is_core_post( $post, 'register' ) ||
|
||||
um_is_core_post( $post, 'account' ) || um_is_core_post( $post, 'logout' ) ||
|
||||
um_is_core_post( $post, 'password-reset' ) || ( is_user_logged_in() && um_is_core_post( $post, 'user' ) ) )
|
||||
return false;
|
||||
$exclude = true;
|
||||
}
|
||||
$exclude = apply_filters( 'um_exclude_posts_from_privacy', $exclude, $post );
|
||||
if ( $exclude ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$restricted_posts = UM()->options()->get( 'restricted_access_post_metabox' );
|
||||
|
||||
Reference in New Issue
Block a user