AffStackDev Image Manager icon
Media, Galleries & Sliders

AffStackDev Image Manager hooks reference

AffStackDev Image Manager 1.9.2 has 3 actions and 12 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.

functions.phpyour child theme
// Run your own code when AffStackDev Image Manager fires an action
add_action( 'afsd_im_backup_completed', function( $item ) {
	// Your code runs here.
}, 10, 1 );

// Change a value AffStackDev Image Manager is about to use
add_filter( 'afsd_im_admin_sections', 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

  • includes/class-hooks.php line 402
    /**
     * Filters the tabs that code extending Image Manager adds to its page.
     */
    apply_filters( 'afsd_im_admin_sections', array() );
  • includes/class-ai-abilities.php line 47
    /**
     * Filters whether AI assistants may use Image Manager through WordPress's
     * Abilities API and its MCP address.
     */
    apply_filters( 'afsd_im_ai_enabled', ! empty( Settings::get()['ai_assistants'] ) );
  • includes/class-urls.php line 153
    /**
     * Filters whether a site-local page address may be read as a public page
     * (public-page scans and delivery checks). Anything other than true excludes
     * the page.
     */
    apply_filters( 'afsd_im_allow_public_page', true, $url, $id );
  • includes/class-backup.php line 1248
    /**
     * Fires after a local backup snapshot is finished, verified and added to the
     * snapshot index.
     */
    do_action( 'afsd_im_backup_completed', $item );
  • includes/class-plugin.php line 152
    /**
     * Fires once after Image Manager has booted, before it announces its contract:
     * where code that extends Image Manager starts.
     */
    do_action( 'afsd_im_booted' );
  • includes/class-plugin.php line 214
    /**
     * Filters the WP-Cron hooks of code that extends Image Manager; deactivation
     * clears them too.
     */
    apply_filters( 'afsd_im_extension_events', array() );
  • includes/class-fit.php line 454
    /**
     * Filters the pages Image Manager measures for Pictures sized to fit the page:
     * Home and the public pages its scan found. Every address must still be one of
     * this site's public pages (the same rule as the scan); others are dropped.
     */
    apply_filters( 'afsd_im_fit_pages', $out );
  • includes/class-sources.php line 373
    /**
     * Filters whether the site logo, seen in anonymous public page HTML, counts as
     * a public image.
     */
    apply_filters( 'afsd_im_public_logo_allowed', true, (int) $row['attachment_id'], $row );
  • includes/class-sources.php line 67
    /**
     * Filters whether a published, publicly viewable post, page or product counts
     * as a public owner of its images. Providers may veto; a grant cannot override
     * a private or password-protected native owner, which is refused before.
     */
    apply_filters( 'afsd_im_public_owner_allowed', true, $id, $p );
  • includes/class-theme.php line 303
    /**
     * Filters whether a theme image carried over from an earlier release's record
     * (its copies keep their earlier names) may still be treated as public.
     */
    apply_filters( 'afsd_im_public_theme_image_allowed', true, $row );
  • includes/class-foundation.php line 56
    /**
     * Fires once, after Image Manager has booted, with its descriptive contract.
     */
    do_action( 'afsd_im_ready', has_action( 'afsd_im_ready' ) || has_action( 'all' ) ? self::contract() : array() );
  • includes/class-reviewed-owner.php line 87
    /**
     * Filters the reviewed actions that code extending Image Manager adds, by the
     * prefix of their names.
     */
    apply_filters( 'afsd_im_reviewed_extensions', array() );
  • includes/class-reviewed-inputs.php line 97
    /**
     * Filters the secret inputs that code extending Image Manager adds to the AI
     * inputs screen.
     */
    apply_filters( 'afsd_im_secret_kinds', array() );
  • includes/class-theme.php line 315
    /**
     * Filters whether a theme image seen on public pages is eligible for
     * optimization and delivery.
     */
    apply_filters( 'afsd_im_theme_source_allowed', true, (int) $row['id'], $row['details'] );
  • includes/class-media-replacement.php line 242
    /**
     * This filter is documented in wp-admin/includes/image.php
     */
    apply_filters( 'intermediate_image_sizes_advanced', wp_get_registered_image_subsizes(), $meta, $id );

Generated from AffStackDev Image Manager'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.

Plugin 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 this

Not 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: