mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- added disable Gutenberg Restriction option;
This commit is contained in:
@@ -1168,6 +1168,11 @@ if ( ! class_exists( 'um\core\Access' ) ) {
|
||||
return $block_content;
|
||||
}
|
||||
|
||||
$restricted_blocks = UM()->options()->get( 'restricted_blocks' );
|
||||
if ( empty( $restricted_blocks ) ) {
|
||||
return $block_content;
|
||||
}
|
||||
|
||||
if ( is_user_logged_in() && current_user_can( 'administrator' ) ) {
|
||||
return $block_content;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user