Filter: um_disable_blocks_script

apply_filters( 'um_disable_blocks_script', $disable_script ) → {bool}

Filters the variable to disable adding UM Blocks to Gutenberg editor.

Note: It's "false" by default. To disable Gutenberg scripts to avoid the conflicts set it to "true"

Parameters:
Name Type Description
$disable_script bool

Disabling block scripts variable.

Since:
  • 2.6.3
Source:
Returns:

It's true for disabling block scripts.

Type
bool
Example

Disable block scripts.

function my_custom_um_disable_blocks_script( $disable_script ) {
    $disable_script = true;
    return $disable_script;
}
add_filter( 'um_disable_blocks_script', 'my_custom_um_disable_blocks_script', 10, 1 );