Created
March 1, 2024 18:31
-
-
Save xnau/70d42943c89117b2d736eec6481d7665 to your computer and use it in GitHub Desktop.
Shows how to override javascript minification in Participants Database
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 | |
/** | |
* Plugin Name: PDB Don't Minify JS | |
* Description: overrides the use of built-in minified javascript in Participants Database | |
*/ | |
add_filter( 'pdb-use_minified_assets', function($enabled){ | |
return false; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If plugin minification of javascript is causing problems or you want to let another plugin handle minifying your javascript, you can tell Participants Database not to minify its javascript with this plugin.
How to install a gist as a WordPress plugin