WordPress.org

Forums

Better WordPress Minify
[resolved] How can I enable it for admin JS/CSS? (2 posts)

  1. ssj_costy
    Member
    Posted 8 months ago #

    Hi, is there any way I could use this plugin to minify the scripts and css on admin pages? My site is using a lot of plugins which add a lot of javascript files on the admin side, which now loads in 20 seconds!
    Or maybe I can use a different approach?

    http://wordpress.org/extend/plugins/bwp-minify/

  2. OddOneOut
    Member
    Plugin Author

    Posted 8 months ago #

    Although it is entirely possible (BWP Minify supports this), but I would not recommend doing so.

    Anyway, use this in your theme:

    add_filter('bwp_minify_allowed_in_admin', create_function('', 'return true;'));

    If this fails, then Minify might not work with your wp-admin :).

Reply

You must log in to post.

About this Plugin

About this Topic