Skip to content

Minit Action and Filter Hooks

Kaspars Dambis edited this page Sep 12, 2016 · 5 revisions

Available Action Hooks

minit-cache-purged

Called when the global cache gets purged.

minit-cache-purge-delete

This is not called but hooked by Minit, you may clear the cache with do_action( 'minit-cache-purge-delete' );

Available Filter Hooks

minit-js-in-footer

@todo create a fallback

minit-script-tag-async

Disable async script loading. (boolean)

minit-exclude-{css,js}

Exclude specific style and script handles. (array)

minit-url-{css,js}

Modify minited file URL-s.

minit-content-{css,js}

Change the content of minited files.

minit-cache-expiration

Default cache expiration time of all minited files' data.

minit-cache-expiration-{css,js}

Cache expiration time of minited style's and script's data.

Clone this wiki locally