I have a similar request that I’m going to tag onto to yours.
Global Unload with post type exceptions.
For example: If Global Unload is selected then an additional option would be added that you could check to say Add Exception for this post type.
Then another plugin could be used to create custom post types for whatever the page or post that is using those assets and boom good to go. This would atleast work for me.
Reasoning?
I create posts that use a table plugin for product comparisons. It loads 5 scripts for that one plugin. I only need those scripts for those post types not any of my regular blog posts that do not contain those comparison tables.
@blamedutchie – I agree the UI is not the best and I’m open to any suggestions. You’re not using it often though 🙂 – Yes, disabling reCAPTCHA too on login page is not ideal so I will find a solution for this.
@corupt – due to high demand, I will implement this feature. I will think of an effective way to implement both unload by post type or unload everywhere except on specific post types.
@gabelivan Very awesome to hear Gabe! You are an awesome WP developer!
@corupt, now you can unload assets for specific post types. For instance, if you need to remove a specific CSS file only on pages, blog posts or a custom post type, you can do that.
my excitement: https://memegenerator.net/instance/29446561
Will respond back when I’ve setup the custom post types and everything is running boss mode.
BTW Congrats on 1000+ installs!
@corupt, how it’s going? Have you had time to test it? I’ve just released an update fixing a bug. Latest version is now 1.2.4.1.
Hi @gabelivan
Yes it worked beautifully on one site!
The other really didn’t work only because I wasn’t able to setup the custom post types like I thought I could.
So now I wish there were some other way to help this plugin differentiate between certain posts in the regular Posts post type. Only way I can think of is with tagging or post format.
Hi Carlton @corupt,
Can you be more specific about this one:
>>> The other really didn’t work only because I wasn’t able to setup the custom post types like I thought I could.
Haven’t you registered the custom post type through WordPress the way it should be with register_post_type? Note that obviously only the “public” post types (viewed in the front-end) will be relevant.
Regards,
Gabriel
Hi @gabelivan
Do not worry there is absolutely nothing wrong with your plugin.
I just thought I could setup a custom post type for another site but it didn’t allow me to have all the options I needed.
So basically I’m not able to use your plugin to clear out those assets because the custom post types don’t come with all the options that I need to build those types of posts.
So the only other way I would be able to clear assets out of these types of posts would be if WP asset cleanup had a new option to filter out assets by post format type (sticky, video, quote etc) or by tags.
Then I could go to each individual post and change it’s format to a certain type or tag it with a certain tag and then select the option in WP asset cleanup to clear out those certain scripts & css. Exactly like what it does now with the custom post types.
This would be cool but I didn’t even bother to ask because you just updated the entire plugin to include custom post types (which works awesomely!).