Skip to content

Instantly share code, notes, and snippets.

@palmiak
Created Apr 16, 2020
Embed
What would you like to do?
<?php
add_action( 'current_screen', 'wpdocs_this_screen' );
function wpdocs_this_screen() {
$current_screen = get_current_screen();
if ( strpos( $current_screen->id, 'forminator' ) !== false ) {
$scripts = array(
'wpdm-gb-util',
'wpdm-link-templates',
'wpdm-package-selector',
'wpdm-category-selector',
'wpdm-category-dropdown',
'wpdm-icons',
'wpdmgb-sidebar',
);
foreach ( $scripts as $script ) {
wp_deregister_script( $script );
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment