Skip to content

Instantly share code, notes, and snippets.

@xnau
Created March 1, 2024 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xnau/70d42943c89117b2d736eec6481d7665 to your computer and use it in GitHub Desktop.
Save xnau/70d42943c89117b2d736eec6481d7665 to your computer and use it in GitHub Desktop.
Shows how to override javascript minification in Participants Database
<?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;
} );
@xnau
Copy link
Author

xnau commented Mar 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment