Robin Image Optimizer 2.1.2 has 21 actions and 44 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.
// Run your own code when Robin Image Optimizer fires an action
add_action( 'wrio_license_activated', function( $key, $license_data, $data ) {
// Your code runs here.
}, 10, 3 );
// Change a value Robin Image Optimizer is about to use
add_filter( 'https_local_ssl_verify', 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
-
https_local_ssl_verify
filter/** * This filter is documented in wp-includes/class-wp-http-streams.php */ apply_filters( 'https_local_ssl_verify', false ); -
wrio_license_activated
action/** * Action fired after license is activated */ do_action( 'wrio_license_activated', $key, $license_data, $data ); -
wbcr/rio/attachment_restored
action/** * Хук срабатывает после восстановления * аттачмента */ do_action( 'wbcr/rio/attachment_restored', $optimization_data ); -
wbcr/rio/cf_image_restored
action/** * Хук срабатывает после восстановления * cf_image */ do_action( 'wbcr/rio/cf_image_restored', $this->optimization_data ); -
/** * Fires after a successful format conversion. */ do_action( 'wbcr/rio/format_conversion_success', $row, $format ); -
/** * Хук срабатывает после восстановления * nextgen image */ do_action( 'wbcr/rio/nextgen_image_restored', $this->optimization_data ); -
/** * Filter whether to execute hook or not. */ apply_filters( 'wbcr/riop/queue_item_save_execute_hook', true ); -
wbcr/riop/queue_item_saved
action/** * Fires after queue item was saved or updated successfully. */ do_action( 'wbcr/riop/queue_item_saved', $this, false ); -
wrio_bulk_step_time_budget
filter/** * Filters the wall-clock time budget of a step of the bulk page, in seconds. * The step does not start a request or a retry that would end after it, so a * network that does not answer cannot hold the step longer than the web server * allows. */ apply_filters( 'wrio_bulk_step_time_budget', 50 ); -
wrio_format_min_saving
filter/** * The part of the size that a WebP or AVIF must save to be kept: 0.05 keeps a * file at least 5% smaller than the one it replaces. A negative value keeps * every file. */ apply_filters( 'wrio_format_min_saving', 0.05 ); -
/** * Filter request body before API call */ apply_filters( 'wrio_freemius_activate_request', $body, $key ); -
wrio_license_activate_data
filter/** * Filter license data before saving */ apply_filters( 'wrio_license_activate_data', $license_data, $key, $data ); -
/** * Action fired before license is deactivated */ do_action( 'wrio_license_before_deactivate', $old_key ); -
wrio_license_deactivated
action/** * Action fired after license is deactivated */ do_action( 'wrio_license_deactivated', $old_key ); -
wrio_should_optimize
filter/** * Filters whether Robin optimizes an image or one of its sizes. */ apply_filters( 'wrio_should_optimize', true, (int) $attachment_id, (string) $size ); -
/** * Filters whether Robin turns off its markup delivery because Optimole is * active. */ apply_filters( 'wrio_skip_delivery_for_optimole', defined( 'OPTML_VERSION' ) || class_exists( 'Optml_Main', false ) ); -
wrio_storage_changed
action/** * Fires after state rows were deleted or marked pending. */ do_action( 'wrio_storage_changed' ); -
wrio_subscription_cancelled
action/** * Action fired after subscription is cancelled */ do_action( 'wrio_subscription_cancelled', $this->license ); -
wrio_support_contacts_url
filter/** * Filter the contacts/support page URL */ apply_filters( 'wrio_support_contacts_url', $url ); -
wrio_support_docs_url
filter/** * Filter the documentation page URL */ apply_filters( 'wrio_support_docs_url', $url ); -
wrio_support_features_url
filter/** * Filter the features page URL */ apply_filters( 'wrio_support_features_url', $url ); -
wrio_support_pricing_url
filter/** * Filter the pricing page URL */ apply_filters( 'wrio_support_pricing_url', esc_url( $url ) ); -
wrio_support_site_url
filter/** * Filter the base site URL */ apply_filters( 'wrio_support_site_url', $url ); -
/** * Filters whether the PHP execution-time limit counts wall-clock time. */ apply_filters( 'wrio_time_limit_is_wall_clock', $wall_clock ); -
wrio_v2_plan_changed
action/** * Fires when GET /account returns other limits than the last time. */ do_action( 'wrio_v2_plan_changed', $limits ); -
wriop_cf_current_folder
filterapply_filters( 'wriop_cf_current_folder', false ); -
apply_filters( "themeisle_sdk_license_process_{$namespace}", $key, 'activate' ); -
wbcr/rio/backup/backup_dir
filterapply_filters( 'wbcr/rio/backup/backup_dir', trailingslashit( $backup_dir ) ); -
apply_filters( "{$this->identifier}_cron_interval", 5 ); -
apply_filters( "{$this->identifier}_default_time_limit", 20 ); -
apply_filters( "{$this->identifier}_memory_exceeded", $exceeded ); -
apply_filters( "{$this->identifier}_post_args", [ 'timeout' => 0.01, 'blocking' => false, 'body' => $this->data, 'cookies' => $_COOKIE, 'sslverify' => apply_filters( 'https_local_ssl_verify', false ), ] ); -
apply_filters( "{$this->identifier}_query_args", [ 'action' => $this->identifier, 'scope' => $this->scope, 'nonce' => wp_create_nonce( $this->identifier ), ] ); -
apply_filters( "{$this->identifier}_query_url", admin_url( 'admin-ajax.php' ) ); -
apply_filters( "{$this->identifier}_queue_lock_time", 60 ); -
apply_filters( "{$this->identifier}_time_exceeded", time() >= $finish ); -
breeze_clear_all_cache
actiondo_action( 'breeze_clear_all_cache' ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
cachify_flush_cache
actiondo_action( 'cachify_flush_cache' ); -
http_request_args
filterapply_filters( 'http_request_args', [ 'method' => 'POST', 'timeout' => $timeout, 'user-agent' => $this->user_agent(), 'headers' => array_merge( $this->headers(), [ 'Content-Type' => 'multipart/form-data; boundary=' . $boundary, 'X-Trigger' => self::$trigger, 'X-Client-Request-Id' => $file['client_id'] ?? wp_generate_uuid4(), ] ), 'body' => $this->multipart( $file, $boundary ), 'sslverify' => true, 'sslcertificates' => ABSPATH . '... ); -
http_response
filterapply_filters( 'http_response', $response, $requests[ $key ]['args'], $url ); -
https_ssl_verify
filterapply_filters( 'https_ssl_verify', $args['sslverify'], $url ); -
litespeed_purge_all
actiondo_action( 'litespeed_purge_all' ); -
pre_http_request
filterapply_filters( 'pre_http_request', false, $args, $url ); -
apply_filters( "product_{$sdk_namespace}_license_key", false ); -
apply_filters( "product_{$sdk_namespace}_license_plan", 0 ); -
apply_filters( "product_{$sdk_namespace}_license_status", false ); -
apply_filters( "product_{self::get_sdk_namespace()}_license_status", false ); -
swcfpc_purge_cache
actiondo_action( 'swcfpc_purge_cache' ); -
themeisle_internal_page
actiondo_action( 'themeisle_internal_page', WRIO_PRODUCT_SLUG, $page_slug ); -
themeisle_sdk_secret_masking
filterapply_filters( 'themeisle_sdk_secret_masking', $license_key ); -
apply_filters( "wbcr/factory/network_option_{$option_name}", $value, $option_name, $default_value, get_current_network_id() ); -
apply_filters( "wbcr/factory/option_{$option_name}", $value, $option_name, $default_value ); -
do_action( 'wbcr/factory/pages/impressive/after_form_save', WRIO_Plugin::app(), (object) [ 'id' => 'rio_settings' ] ); -
apply_filters( "wbcr/factory/populate_option_{$option_name}", $value, $option_name, $default_value ); -
do_action( 'wbcr/factory/update_network_option', $option_name, $value ); -
wbcr/factory/update_option
actiondo_action( 'wbcr/factory/update_option', $option_name, $value ); -
apply_filters( 'wbcr/rio/backup/restore_filter', $per_request ); -
wbcr/rio/multisite_blogs
filterapply_filters( 'wbcr/rio/multisite_blogs', $blogs, $context ); -
apply_filters( 'wbcr/rio/optimize_template/convert_ajax_action', 'wio_convert_image', $this->page_type ); -
apply_filters( 'wbcr/rio/optimize_template/reoptimize_ajax_action', 'wio_reoptimize_image', $this->page_type ); -
apply_filters( 'wbcr/rio/optimize_template/restore_ajax_action', 'wio_restore_image', $this->page_type ); -
apply_filters( 'wbcr/rio/settings_page/options', [] ); -
wbcr/rio/webp_success
actiondo_action( 'wbcr/rio/webp_success', $row ); -
apply_filters( 'wrio_optimize_process_media_library_query_url', admin_url( 'admin-ajax.php' ) );
Generated from Robin 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: