Image Optimizer icon
Performance & Caching

Image Optimizer hooks reference

  • By Elementor
  • v1.7.8 New
  • Updated

Image Optimizer 1.7.8 has 1 actions and 2 filters, read directly from its source code on Nov 17, 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.

functions.phpyour child theme
// Run your own code when Image Optimizer fires an action
add_action( 'action_scheduler_failed_action', function( $action_id, $arg2 ) {
	// Your code runs here.
}, 10, 2 );

// Change a value Image Optimizer is about to use
add_filter( 'image_optimizer_client_get_base_url', function( $value ) {
	// Change $value here.
	return $value;
}, 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

  • modules/optimization/components/actions-cleanup.php line 73 · used in 2 places
    do_action( 'action_scheduler_failed_action', $action_id, self::FIVE_MINUTES_IN_SECONDS );
  • classes/client/client.php line 163
    apply_filters( 'image_optimizer_client_get_base_url', self::BASE_URL );
  • classes/client/client.php line 159
    apply_filters( 'image_optimizer_feedback_base_url', self::BASE_URL_FEEDBACK );

Generated from Image Optimizer's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: