-
-
Save palmiak/93d6cdf989be0037b76c8b7efeb2e665 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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