Yangra Image Resizer 1.3.0 has 9 actions and 17 filters, read directly from its source code on Nov 19, 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 Yangra Image Resizer fires an action
add_action( 'yaimre_card_start', function( $yaimre_image, $yaimre_card_mode, $arg3 ) {
// Your code runs here.
}, 10, 3 );
// Change a value Yangra Image Resizer is about to use
add_filter( 'yaimre_admin_tabs', function( $yaimre_tabs, $yaimre_stats ) {
// Change $yaimre_tabs here.
return $yaimre_tabs;
}, 10, 2 );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
-
/** * Tabs keyed by admin page slug: [ label, count or null ] */ apply_filters( 'yaimre_admin_tabs', $yaimre_tabs, $yaimre_stats ); -
/** * Start of the card, before the thumbnail, such as a selection checkbox. * Output must be escaped by the callback. */ do_action( 'yaimre_card_start', $yaimre_image, $yaimre_card_mode, $yaimre_image_exists && ! $yaimre_too_large_to_resize ); -
/** * Buttons for one resize history row. Escape all output. */ do_action( 'yaimre_history_actions', $yaimre_record, $yaimre_media_exists ); -
/** * Filters the quality the resized image is saved with. */ apply_filters( 'yaimre_image_editor_quality', null, $media_id ); -
/** * Filters whether the resized image may be saved over the original. The * original is still untouched here, so this is where backups are made. */ apply_filters( 'yaimre_pre_save_resize', true, $media_id, $resize_image_width, $image_path ); -
/** * Replace the single recipient field (Pro: several addresses). The field must * be named report_recipients. */ do_action( 'yaimre_report_recipients_field', $yaimre_report_settings['recipients'], $yaimre_report_max ); -
/** * Fires after the width field in the resize modal, inside its form. */ do_action( 'yaimre_resize_form_fields' ); -
/** * Filter the memory estimate used before resizing an image. */ apply_filters( 'yaimre_resize_memory_check', $result, $media_id, $image_path, $target_width ); -
/** * Filters the common widths offered as quick buttons in the resize modal. */ apply_filters( 'yaimre_resize_preset_widths', [ 1280, 1920, 2560 ] ); -
/** * Filters the note under the resize form. */ apply_filters( 'yaimre_resize_warning', [ 'type' => 'warning', 'message' => __( 'This permanently replaces the original file. Make sure you have a backup.', 'yangra-image-resizer' ), ] ); -
/** * Above the review grid, such as bulk actions for the cards on this page. * Output must be escaped by the callback. */ do_action( 'yaimre_review_toolbar', $yaimre_images ); -
/** * Tiles shown before the progress tile: [ key, label, formatted value, hint ] */ apply_filters( 'yaimre_stat_tiles', $yaimre_stat_tiles, $yaimre_stats ); -
apply_filters( 'big_image_size_threshold', 2560, [ 0, 0 ], '', 0 ); -
apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ); -
do_action( 'yaimre_after_resize', $media_id, $record ); -
do_action( 'yaimre_before_resize', $media_id, $resize_image_width, $image_path ); -
do_action( 'yaimre_card_actions', $yaimre_image, $yaimre_card_mode, $yaimre_image_exists ); -
apply_filters( 'yaimre_filter_min_sizes', [ 1, 2, 5, 10 ] ); -
do_action( 'yaimre_fs_loaded' ); -
apply_filters( 'yaimre_images_per_page', self::IMAGES_PER_PAGE ); -
apply_filters( 'yaimre_report_data', $report, $year, $month ); -
apply_filters( 'yaimre_report_max_recipients', 1 ); -
apply_filters( 'yaimre_report_recipients', $recipients, $report ); -
apply_filters( 'yaimre_review_request_after', 3 ); -
apply_filters( 'yaimre_scan_batch_size', self::SCAN_BATCH_SIZE ); -
apply_filters( 'yaimre_site_health_threshold', 5 * MB_IN_BYTES );
Generated from Yangra Image Resizer's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: