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:
@@ -399,6 +399,11 @@ if ( ! class_exists( 'um\admin\core\Admin_Enqueue' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$restricted_blocks = UM()->options()->get( 'restricted_blocks' );
|
||||
if ( empty( $restricted_blocks ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
wp_register_script( 'um_block_js', $this->js_url . 'um-admin-blocks.js', array( 'wp-i18n', 'wp-blocks', 'wp-components' ), ultimatemember_version, true );
|
||||
wp_set_script_translations( 'um_block_js', 'ultimate-member' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user