Created
September 27, 2022 08:17
-
-
Save Alimir/59fed391ee3ed4117c59bb8bfaf4f947 to your computer and use it in GitHub Desktop.
Fix compatibility problem with the 'Simple Custom CSS and JS' plugin
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_filter('ulf_enqueue_assets',function($enqueue){ | |
// Global object containing current admin page | |
global $pagenow; | |
if ( 'post.php' === $pagenow && isset($_GET['post']) && 'custom-css-js' === get_post_type( $_GET['post'] ) ){ | |
return false; | |
} | |
return $enqueue; | |
},10, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
we've already fixed this problem in the plugin and you don't need to use this anymore!