apply_filters( 'um_ignore_global_scripts', $ignore, $hook ) → {bool}
Filters ignoring UM global scripts register and enqueue.
Parameters:
| Name | Type | Description |
|---|---|---|
$ignore |
bool | Bool variable to ignore UM global scripts. |
$hook |
string | Data to localize. |
- Since:
- 2.13.0
- Source:
Returns:
Ignore UM global scripts or not.
- Type
- bool
Example
Ignore UM global scripts on screen `um_page_um_settings`.
function um_custom_ignore_global_scripts( $ignore, $hook ) {
if ( $hook === 'um_page_um_settings' ) {
$ignore = true;
}
return $ignore;
}
add_filter( 'um_ignore_global_scripts', 'um_custom_ignore_global_scripts', 10, 2 );