Robin Image Optimizer icon
Performance & Caching

Robin Image Optimizer hooks reference

  • By Themeisle
  • v2.1.2 New
  • Updated

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.

functions.phpyour child theme
// 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

  • libs/addons/includes/classes/webp/class-webp-delivery-test.php line 362 · used in 3 places
    /**
     * This filter is documented in wp-includes/class-wp-http-streams.php
     */
    apply_filters( 'https_local_ssl_verify', false );
  • includes/classes/class-wrio-premium-provider.php line 275 · used in 2 places
    /**
     * Action fired after license is activated
     */
    do_action( 'wrio_license_activated', $key, $license_data, $data );
  • includes/classes/class-rio-media-library.php line 624
    /**
     * Хук срабатывает после восстановления
     * аттачмента
     */
    do_action( 'wbcr/rio/attachment_restored', $optimization_data );
  • libs/addons/includes/classes/class.folder-image.php line 394
    /**
     * Хук срабатывает после восстановления
     * cf_image
     */
    do_action( 'wbcr/rio/cf_image_restored', $this->optimization_data );
  • includes/classes/v2/class-format-rows.php line 118
    /**
     * Fires after a successful format conversion.
     */
    do_action( 'wbcr/rio/format_conversion_success', $row, $format );
  • libs/addons/includes/classes/class.image-nextgen.php line 397
    /**
     * Хук срабатывает после восстановления
     * nextgen image
     */
    do_action( 'wbcr/rio/nextgen_image_restored', $this->optimization_data );
  • includes/classes/models/class-rio-process-queue-table.php line 827
    /**
     * Filter whether to execute hook or not.
     */
    apply_filters( 'wbcr/riop/queue_item_save_execute_hook', true );
  • includes/classes/models/class-rio-process-queue-table.php line 836
    /**
     * Fires after queue item was saved or updated successfully.
     */
    do_action( 'wbcr/riop/queue_item_saved', $this, false );
  • admin/class-rio-rest-controller.php line 406
    /**
     * 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 );
  • includes/classes/v2/class-optimizer.php line 764
    /**
     * 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 );
  • includes/classes/class-wrio-premium-provider.php line 202
    /**
     * Filter request body before API call
     */
    apply_filters( 'wrio_freemius_activate_request', $body, $key );
  • includes/classes/class-wrio-premium-provider.php line 261
    /**
     * Filter license data before saving
     */
    apply_filters( 'wrio_license_activate_data', $license_data, $key, $data );
  • includes/classes/class-wrio-premium-provider.php line 406
    /**
     * Action fired before license is deactivated
     */
    do_action( 'wrio_license_before_deactivate', $old_key );
  • includes/classes/class-wrio-premium-provider.php line 433
    /**
     * Action fired after license is deactivated
     */
    do_action( 'wrio_license_deactivated', $old_key );
  • includes/functions.php line 906
    /**
     * Filters whether Robin optimizes an image or one of its sizes.
     */
    apply_filters( 'wrio_should_optimize', true, (int) $attachment_id, (string) $size );
  • libs/addons/includes/classes/webp/class-webp-delivery.php line 110
    /**
     * 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 ) );
  • includes/classes/storage/class-store.php line 2567
    /**
     * Fires after state rows were deleted or marked pending.
     */
    do_action( 'wrio_storage_changed' );
  • includes/classes/class-wrio-premium-provider.php line 465
    /**
     * Action fired after subscription is cancelled
     */
    do_action( 'wrio_subscription_cancelled', $this->license );
  • includes/classes/class-wrio-support.php line 173
    /**
     * Filter the contacts/support page URL
     */
    apply_filters( 'wrio_support_contacts_url', $url );
  • includes/classes/class-wrio-support.php line 195
    /**
     * Filter the documentation page URL
     */
    apply_filters( 'wrio_support_docs_url', $url );
  • includes/classes/class-wrio-support.php line 129
    /**
     * Filter the features page URL
     */
    apply_filters( 'wrio_support_features_url', $url );
  • includes/classes/class-wrio-support.php line 151
    /**
     * Filter the pricing page URL
     */
    apply_filters( 'wrio_support_pricing_url', esc_url( $url ) );
  • includes/classes/class-wrio-support.php line 101
    /**
     * Filter the base site URL
     */
    apply_filters( 'wrio_support_site_url', $url );
  • includes/functions.php line 81
    /**
     * Filters whether the PHP execution-time limit counts wall-clock time.
     */
    apply_filters( 'wrio_time_limit_is_wall_clock', $wall_clock );
  • includes/classes/v2/class-client.php line 367
    /**
     * Fires when GET /account returns other limits than the last time.
     */
    do_action( 'wrio_v2_plan_changed', $limits );
  • libs/addons/includes/classes/class.image-statistic-folders.php line 102 · used in 5 places
    apply_filters( 'wriop_cf_current_folder', false );
  • includes/classes/class-wrio-premium-provider.php line 357 · used in 2 places
    apply_filters( "themeisle_sdk_license_process_{$namespace}", $key, 'activate' );
  • includes/classes/class-rio-backup.php line 161 · used in 2 places
    apply_filters( 'wbcr/rio/backup/backup_dir', trailingslashit( $backup_dir ) );
  • includes/classes/processing/class-rio-processing.php line 306
    apply_filters( "{$this->identifier}_cron_interval", 5 );
  • includes/classes/processing/class-rio-processing.php line 554
    apply_filters( "{$this->identifier}_default_time_limit", 20 );
  • includes/classes/processing/class-rio-processing.php line 545
    apply_filters( "{$this->identifier}_memory_exceeded", $exceeded );
  • includes/classes/processing/class-rio-processing.php line 183
    apply_filters( "{$this->identifier}_post_args", [ 'timeout' => 0.01, 'blocking' => false, 'body' => $this->data, 'cookies' => $_COOKIE, 'sslverify' => apply_filters( 'https_local_ssl_verify', false ), ] );
  • includes/classes/processing/class-rio-processing.php line 173
    apply_filters( "{$this->identifier}_query_args", [ 'action' => $this->identifier, 'scope' => $this->scope, 'nonce' => wp_create_nonce( $this->identifier ), ] );
  • includes/classes/processing/class-rio-processing.php line 181
    apply_filters( "{$this->identifier}_query_url", admin_url( 'admin-ajax.php' ) );
  • includes/classes/processing/class-rio-processing.php line 502
    apply_filters( "{$this->identifier}_queue_lock_time", 60 );
  • includes/classes/processing/class-rio-processing.php line 556
    apply_filters( "{$this->identifier}_time_exceeded", time() >= $finish );
  • includes/functions.php line 1456
    do_action( 'breeze_clear_all_cache' );
  • includes/functions.php line 1455
    do_action( 'cache_enabler_clear_complete_cache' );
  • includes/functions.php line 1405
    do_action( 'cachify_flush_cache' );
  • includes/classes/v2/class-client.php line 1289
    apply_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

    filter
    includes/classes/v2/class-client.php line 1343
    apply_filters( 'http_response', $response, $requests[ $key ]['args'], $url );
  • includes/classes/v2/class-client.php line 1358
    apply_filters( 'https_ssl_verify', $args['sslverify'], $url );
  • includes/functions.php line 1454
    do_action( 'litespeed_purge_all' );
  • includes/classes/v2/class-client.php line 1309
    apply_filters( 'pre_http_request', false, $args, $url );
  • includes/class-rio-plugin.php line 337
    apply_filters( "product_{$sdk_namespace}_license_key", false );
  • includes/class-rio-plugin.php line 336
    apply_filters( "product_{$sdk_namespace}_license_plan", 0 );
  • includes/class-rio-plugin.php line 338
    apply_filters( "product_{$sdk_namespace}_license_status", false );
  • includes/class-rio-plugin.php line 412
    apply_filters( "product_{self::get_sdk_namespace()}_license_status", false );
  • includes/functions.php line 1457
    do_action( 'swcfpc_purge_cache' );
  • includes/class-rio-plugin.php line 319
    do_action( 'themeisle_internal_page', WRIO_PRODUCT_SLUG, $page_slug );
  • includes/class-rio-plugin.php line 231
    apply_filters( 'themeisle_sdk_secret_masking', $license_key );
  • includes/class-rio-plugin.php line 595
    apply_filters( "wbcr/factory/network_option_{$option_name}", $value, $option_name, $default_value, get_current_network_id() );
  • includes/class-rio-plugin.php line 626
    apply_filters( "wbcr/factory/option_{$option_name}", $value, $option_name, $default_value );
  • admin/class-rio-settings.php line 492
    do_action( 'wbcr/factory/pages/impressive/after_form_save', WRIO_Plugin::app(), (object) [ 'id' => 'rio_settings' ] );
  • includes/class-rio-plugin.php line 544
    apply_filters( "wbcr/factory/populate_option_{$option_name}", $value, $option_name, $default_value );
  • includes/class-rio-plugin.php line 610
    do_action( 'wbcr/factory/update_network_option', $option_name, $value );
  • includes/class-rio-plugin.php line 641
    do_action( 'wbcr/factory/update_option', $option_name, $value );
  • admin/class-rio-actions.php line 69
    apply_filters( 'wbcr/rio/backup/restore_filter', $per_request );
  • includes/classes/class-rio-multisite.php line 59
    apply_filters( 'wbcr/rio/multisite_blogs', $blogs, $context );
  • admin/includes/classes/class-rio-optimize-template.php line 67
    apply_filters( 'wbcr/rio/optimize_template/convert_ajax_action', 'wio_convert_image', $this->page_type );
  • admin/includes/classes/class-rio-optimize-template.php line 66
    apply_filters( 'wbcr/rio/optimize_template/reoptimize_ajax_action', 'wio_reoptimize_image', $this->page_type );
  • admin/includes/classes/class-rio-optimize-template.php line 68
    apply_filters( 'wbcr/rio/optimize_template/restore_ajax_action', 'wio_restore_image', $this->page_type );
  • admin/class-rio-settings.php line 163
    apply_filters( 'wbcr/rio/settings_page/options', [] );
  • includes/classes/v2/class-format-rows.php line 121
    do_action( 'wbcr/rio/webp_success', $row );
  • includes/functions.php line 744
    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: