reGenerate Thumbnails Advanced icon
eCommerce & WooCommerce

reGenerate Thumbnails Advanced hooks reference

  • By ShortPixel
  • v2.5.0
  • Updated

reGenerate Thumbnails Advanced 2.5.0 has 12 actions and 13 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 reGenerate Thumbnails Advanced fires an action
add_action( 'rta_after_front_init', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value reGenerate Thumbnails Advanced is about to use
add_filter( 'rta/process/prepare_limit', function( $limit ) {
	// Change $limit here.
	return $limit;
}, 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

  • classes/Environment.php line 55 · used in 2 places
    apply_filters( 'rta/process/prepare_limit', $limit );
  • classes/Front.php line 16
    do_action( 'rta_after_front_init' );
  • classes/Controllers/Controller.php line 50
    do_action( 'rta_after_load_template', $template, $for, $attr, $html );
  • classes/Controllers/Controller.php line 51
    apply_filters( 'rta_after_template_html', $html, $template, $for, $attr );
  • classes/Controllers/Controller.php line 17
    do_action( 'rta_before_load_template', $template, $for, $attr );
  • classes/Controllers/Controller.php line 29
    apply_filters( 'rta_before_template_html', $html, $template, $for, $attr );
  • classes/Plugin.php line 202
    do_action( 'rta_enqueue_scripts' );
  • classes/Controllers/Controller.php line 18
    apply_filters( 'rta_template_to_load', $template, $for, $attr );
  • classes/Controllers/Controller.php line 19
    apply_filters( 'rta_template_variables', $attr, $template, $for );
  • build/shortpixel/filesystem/src/Model/File/FileModel.php line 143
    apply_filters( 'rta/file/exists', $this->exists, $this->fullpath, $this );
  • build/shortpixel/filesystem/src/Controller/FileSystemController.php line 73
    apply_filters( 'rta/filesystem/abspath', $abspath );
  • build/shortpixel/filesystem/src/Model/File/FileModel.php line 374
    do_action( 'rta/filesystem/addfile', array($destinationPath, $destination, $this, $is_new) );
  • build/shortpixel/filesystem/src/Model/File/FileModel.php line 553
    apply_filters( 'rta/filesystem/processFilePath', $path, $original_path );
  • classes/Image.php line 153
    apply_filters( 'rta/get_backup', $this->getFullPath(), $this->id );
  • classes/Image.php line 198
    do_action( 'rta/image/thumbnails_regenerated', $this->id, $regenSizes );
  • build/shortpixel/filesystem/src/Model/File/FileModel.php line 663
    apply_filters( 'rta/image/urltopath', false, $url );
  • build/shortpixel/shortq/src/Queue/WPQ.php line 289
    do_action( 'rta/modules/wpq/item/timeout', $item );
  • classes/Environment.php line 83
    apply_filters( 'rta/process/max_memory', $percentage_limit );
  • classes/Process.php line 51
    apply_filters( 'rta/process/numitems', 3 );
  • templates/admin/view_rta_regenerate.php line 165
    do_action( 'rta/ui/end-options' );
  • templates/admin/view_rta_settings.php line 107
    do_action( 'rta/ui/end-settings' );
  • templates/admin/view_rta_regenerate.php line 13
    do_action( 'rta/ui/start-options' );
  • build/shortpixel/filesystem/src/Model/File/FileModel.php line 142
    apply_filters( 'shortpixel_image_exists', $this->exists, $this->fullpath, $this );
  • classes/Image.php line 150
    do_action( 'shortpixel-thumbnails-before-regenerate', $this->id );
  • classes/Image.php line 197
    do_action( 'shortpixel-thumbnails-regenerated', $this->id, $original_meta, $regenSizes, $is_a_bulk );

Generated from reGenerate Thumbnails Advanced'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: