WordPress HTML minification plugin.
Minifies request content for some contents served through WordPress.
- minify HTML
- minify inline Script
- minify inline CSS
- allow to veto through
gh-minify-vetofilter - allow to post-process minification through
gh-minify-contentfilter - allow to alter tag-ignore list through
gh-minify-skip-tagsfilter - standalone usage
Prepend this to your WordPress index.php
Goatherd\WpPlugin\Minify::initPlugin(); // enable minifyNote that you either need to register composer autoloading
(recommended; for example: require_once __DIR__ . '/vendor/autoload.php) or
preload the Goatherd\WpPlugin\Minify class file.
PSR-4 compliant code approximating SOLID priciples.