EmergentPixel Image Optimizer 1.0.0 has 11 actions and 18 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.
// Run your own code when EmergentPixel Image Optimizer fires an action
add_action( 'epim_attachment_optimized', function( $attachment_id, $summary, $status ) {
// Your code runs here.
}, 10, 3 );
// Change a value EmergentPixel Image Optimizer is about to use
add_filter( 'epim_optimization_profile', function( $profile, $attachment_id ) {
// Change $profile here.
return $profile;
}, 10, 2 );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
-
/** * Change quality or level per attachment. */ apply_filters( 'epim_optimization_profile', $profile, $attachment_id ); -
/** * This filter is documented in wp-admin/includes/image.php */ apply_filters( 'intermediate_image_sizes_advanced', $sizes, $metadata, $attachment_id ); -
/** * Fires when a background run finishes, e.g. epim_regen_finished. */ do_action( "epim_{$this->key()}_finished", array( 'done' => $this->counter( 'done' ), 'failed' => $this->counter( 'failed' ), ) ); -
/** * Filter extra admin tabs. Each tab: id, title, script (registered handle). * The script registers the tab component with the "epim.adminTabs" JS filter. */ apply_filters( 'epim_admin_tabs', array() ); -
/** * Fires after an attachment was processed. */ do_action( 'epim_attachment_optimized', $attachment_id, $summary, $status ); -
/** * Fires after an attachment's original was restored. */ do_action( 'epim_attachment_restored', $attachment_id ); -
/** * Fires before an attachment is optimized. */ do_action( 'epim_before_optimize', $attachment_id, $profile ); -
/** * Filter detected overlaps. */ apply_filters( 'epim_conflicts', $found ); -
/** * Add processors to the frontend HTML pipeline. */ apply_filters( 'epim_content_processors', array() ); -
/** * Quality per next-gen format. */ apply_filters( 'epim_format_quality', $quality, $format ); -
/** * Filter whether the frontend pipeline runs on this request. */ apply_filters( 'epim_frontend_should_run', ! $skip ); -
/** * Swap or wrap the compression driver. */ apply_filters( 'epim_image_driver', $driver, $this->candidates() ); -
/** * Fires when the free core is ready, before modules boot. Add-on plugins boot * here and adds its modules through epim_register_modules. */ do_action( 'epim_loaded', $this ); -
/** * Fires after an attachment's file was replaced. */ do_action( 'epim_media_replaced', $attachment_id, $mode ); -
/** * Fires after a module is toggled. */ do_action( 'epim_module_toggled', $id, $enabled ); -
/** * Fires after all enabled modules registered their hooks. */ do_action( 'epim_modules_loaded', $this ); -
/** * Fires after next-gen copies were generated for an attachment. */ do_action( 'epim_next_gen_generated', $attachment_id, $formats, $counts ); -
/** * Where the Pro information link points. */ apply_filters( 'epim_pro_url', 'https://emergentpixel.com/' ); -
/** * Filters the delivery mode "Automatic" uses. */ apply_filters( 'epim_recommended_delivery_mode', $default ); -
/** * Filter the module list. Add-on plugins register their module classes here. */ apply_filters( 'epim_register_modules', static::CORE_MODULES ); -
/** * Filter the capability for settings and bulk actions. */ apply_filters( 'epim_required_capability', 'manage_options' ); -
/** * Register extra routes under epim/v1 (add-on plugins). */ do_action( 'epim_rest_routes', Abstract_Controller::NAMESPACE, $this->container ); -
/** * Filter the settings schema (add-on plugins extend it). */ apply_filters( 'epim_settings_schema', $schema ); -
/** * Fires after sizes were regenerated. Compression re-optimizes and WebP * re-creates copies for these sizes. */ do_action( 'epim_sizes_regenerated', $attachment_id, $created ); -
/** * Filters a suggested alt text. */ apply_filters( 'epim_suggested_alt', $text, $attachment_id, $step ); -
/** * Formats generated next to originals, best first. */ apply_filters( 'epim_target_formats', $formats ); -
/** * This filter is documented in wp-includes/class-wp-http-streams.php */ apply_filters( 'https_local_ssl_verify', false ); -
/** * This filter is documented in wp-includes/post-thumbnail-template.php */ apply_filters( 'post_thumbnail_size', 'post-thumbnail', get_queried_object_id() ); -
apply_filters( 'epim_is_pro_active', false );
Generated from EmergentPixel Image Optimizer'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: