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.
// 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
-
rta/process/prepare_limit
filterapply_filters( 'rta/process/prepare_limit', $limit ); -
rta_after_front_init
actiondo_action( 'rta_after_front_init' ); -
rta_after_load_template
actiondo_action( 'rta_after_load_template', $template, $for, $attr, $html ); -
rta_after_template_html
filterapply_filters( 'rta_after_template_html', $html, $template, $for, $attr ); -
rta_before_load_template
actiondo_action( 'rta_before_load_template', $template, $for, $attr ); -
rta_before_template_html
filterapply_filters( 'rta_before_template_html', $html, $template, $for, $attr ); -
rta_enqueue_scripts
actiondo_action( 'rta_enqueue_scripts' ); -
rta_template_to_load
filterapply_filters( 'rta_template_to_load', $template, $for, $attr ); -
rta_template_variables
filterapply_filters( 'rta_template_variables', $attr, $template, $for ); -
rta/file/exists
filterapply_filters( 'rta/file/exists', $this->exists, $this->fullpath, $this ); -
rta/filesystem/abspath
filterapply_filters( 'rta/filesystem/abspath', $abspath ); -
rta/filesystem/addfile
actiondo_action( 'rta/filesystem/addfile', array($destinationPath, $destination, $this, $is_new) ); -
apply_filters( 'rta/filesystem/processFilePath', $path, $original_path ); -
rta/get_backup
filterapply_filters( 'rta/get_backup', $this->getFullPath(), $this->id ); -
do_action( 'rta/image/thumbnails_regenerated', $this->id, $regenSizes ); -
rta/image/urltopath
filterapply_filters( 'rta/image/urltopath', false, $url ); -
rta/modules/wpq/item/timeout
actiondo_action( 'rta/modules/wpq/item/timeout', $item ); -
rta/process/max_memory
filterapply_filters( 'rta/process/max_memory', $percentage_limit ); -
rta/process/numitems
filterapply_filters( 'rta/process/numitems', 3 ); -
rta/ui/end-options
actiondo_action( 'rta/ui/end-options' ); -
rta/ui/end-settings
actiondo_action( 'rta/ui/end-settings' ); -
rta/ui/start-options
actiondo_action( 'rta/ui/start-options' ); -
shortpixel_image_exists
filterapply_filters( 'shortpixel_image_exists', $this->exists, $this->fullpath, $this ); -
do_action( 'shortpixel-thumbnails-before-regenerate', $this->id ); -
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: