Optimazz 1.1.6 has 0 actions and 27 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Change a value Optimazz is about to use
add_filter( 'optimazz_admin_script_deps', function( $deps ) {
// Change $deps here.
return $deps;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Let an add-on (e.g. Optimazz Pro) add its script as a dependency of the * admin app, so its `optimazz.adminSections` filter is registered before the * app reads it. The add-on registers the handle it returns here. */ apply_filters( 'optimazz_admin_script_deps', $deps ); -
/** * Filter the active cache storage engine. */ apply_filters( 'optimazz_cache_storage', new DiskStorage() ); -
/** * Filter the whole compatibility registry. */ apply_filters( 'optimazz_compat_profiles', $profiles ); -
/** * Supply critical (above-the-fold) CSS to inline. Defaults to the CSS pasted * in the settings; a premium generator can hook here to supply it * automatically. */ apply_filters( 'optimazz_critical_css', (string) $this->option( 'critical_css', '' ) ); -
/** * Filter the third-party scripts delayed until interaction. */ apply_filters( 'optimazz_delay_js', $list ); -
/** * HTML comments to keep, matched at the start of the comment text. */ apply_filters( 'optimazz_html_keep_comments', array( '[if', '<![endif', 'ko ', '/ko', 'esi', 'noindex', '/noindex', 'googleoff', 'googleon', 'noptimize', '/noptimize' ) ); -
/** * Filter how many attachments a bulk media request processes. */ apply_filters( 'optimazz_media_batch_size', $size, $limit ); -
/** * Filter the scripts that are never deferred. */ apply_filters( 'optimazz_never_defer_js', $list ); -
/** * Filter the scripts that are never delayed. */ apply_filters( 'optimazz_never_delay_js', $list ); -
/** * Filter how many URLs the preloader warms per run. */ apply_filters( 'optimazz_preload_batch', 50 ); -
/** * Cap on how many URLs the preload will warm in total. */ apply_filters( 'optimazz_preload_max', 300 ); -
/** * Whether to warm desktop and mobile copies in parallel. */ apply_filters( 'optimazz_preload_parallel', true ); -
/** * Filter which post types the preloader warms. */ apply_filters( 'optimazz_preload_post_types', array_values( array_unique( array_merge( $ordered, $types ) ) ) ); -
/** * Filter the full list of URLs to preload. */ apply_filters( 'optimazz_preload_urls', $urls ); -
/** * Filter the user-agent used by the cache preloader. */ apply_filters( 'optimazz_preload_user_agent', $ua, $device ); -
/** * Filter the URLs purged when a post changes. */ apply_filters( 'optimazz_purge_post_urls', $urls, $post_id ); -
apply_filters( 'https_local_ssl_verify', false ); -
apply_filters( 'optimazz_css_default_exclusions', Compat::css_exclusions() ); -
apply_filters( 'optimazz_dequeue_block_css', array( 'wp-block-library', 'wp-block-library-theme', 'wc-blocks-style', 'classic-theme-styles', 'global-styles', 'global-styles-css-custom-properties' ) ); -
apply_filters( 'optimazz_dequeue_edd_css', array( 'edd-styles' ) ); -
apply_filters( 'optimazz_dequeue_woo_css', array( 'woocommerce-general', 'woocommerce-layout', 'woocommerce-smallscreen', 'woocommerce-inline', 'wc-blocks-style', 'wc-blocks-vendors-style', 'wc-blocks-packages-style' ) ); -
apply_filters( 'optimazz_media_max_megapixels', $auto_mp, $limit ); -
apply_filters( 'optimazz_plugin_css_scopes', $this->plugin_css_scopes() ); -
apply_filters( 'optimazz_preload_delay_ms', 200 ); -
apply_filters( 'optimazz_safe_mode', (bool) $this->get( 'tools.safe_mode', false ) ); -
apply_filters( 'optimazz_skiplink_guard_css', '.skip-link,.screen-reader-text,.sr-only,[class*="skip-link"],[class*="skip_link"]{transition:none!important;animation:none!important}' );
Generated from Optimazz's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: