Image Source Control Lite 3.15.0 has 11 actions and 65 filters, read directly from its source code on Nov 18, 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 Image Source Control Lite fires an action
add_action( 'isc_after_update_indexes', function( $ID, $content, $new_rendered_ids ) {
// Your code runs here.
}, 10, 3 );
// Change a value Image Source Control Lite is about to use
add_filter( 'isc_force_block_options', 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
-
/** * Return, when the ISC fields are enabled for blocks, and we are not using the * block editor. It is tricky to detect and easy to break, so here is more * information on it: */ apply_filters( 'isc_force_block_options', false ); -
/** * Filter: isc_source_list_empty_output allow to return some output even if * there is no post ID (e.g., on archive pages). */ apply_filters( 'isc_source_list_empty_output', '' ); -
/** * Triggered after updating the indexes. */ do_action( 'isc_after_update_indexes', $post->ID, $content, $new_rendered_ids ); -
/** * Triggered before updating the indexes. Useful to run code with the index * even though the Image Source already have an index */ do_action( 'isc_before_update_indexes', $post->ID, $content ); -
/** * Filter the meta keys to be removed from non-image attachments */ apply_filters( 'isc_cleanup_non_image_meta_keys', $isc_meta_keys ); -
/** * Allow manipulating defaults for plugin settings */ apply_filters( 'isc_default_settings', $default ); -
/** * Filter matches from regex */ apply_filters( 'isc_extract_images_from_html', $matches_new, $matches, $pattern ); -
/** * Filter the image ID found by ISC */ apply_filters( 'isc_filter_final_id_get_image_by_url', $id, [ 'original_url' => $original_url, 'newurl' => $newurl, 'url' => $url, ] ); -
/** * Filter all resolved values of get_image_by_url(). */ apply_filters( 'isc_filter_get_image_by_url_result_final', $params ); -
/** * Filter image IDs found in HTML content, or add new ones based on other * rules. */ apply_filters( 'isc_filter_image_ids_from_content', $srcs, $content ); -
/** * Handle multiple tags at once the original use case is checking AMP pages * generated in reader mode in the AMP plugin and in AMPforWP for IMG and * AMP-IMG tags */ apply_filters( 'isc_filter_image_ids_tags', [ 'img' ] ); -
/** * Modify query arguments for the global list attachments */ apply_filters( 'isc_global_list_get_attachment_arguments', $args, $a ); -
/** * Filter the meta query for included images based on the isc_image_posts meta * key */ apply_filters( 'isc_global_list_meta_query_isc_image_posts', $meta_query, $included ); -
/** * Filters the WHERE clause for the query that finds attachments with empty * sources. */ apply_filters( 'isc_image_sources_attachments_with_empty_sources_where_clause', $where_clause ); -
/** * Allows developers to modify the list before synchronization. */ apply_filters( 'isc_images_in_posts_simple', $new_rendered_ids, $post->ID ); -
/** * Apply a filter to allow overriding the result, passing the original check * result */ apply_filters( 'isc_is_index_bot', $is_bot ); -
/** * Filter: isc_public_caption_default_style Allows to change the default * caption style. */ apply_filters( 'isc_public_caption_default_style', $caption_style, $options ); -
/** * Removed [caption], because this check runs after the hook that interprets * shortcodes img tag is checked individually since there is a different order * of attributes when images are used in gallery or individually */ apply_filters( 'isc_public_caption_regex', '#(?:<figure[^>]*class=["\']([^"\']*)["\'][^>]*>\s*)?((<a[\x20|\x9|\xD|\xA]+[^>]*>)?\s*(<img[\x20|\x9|\xD|\xA]+[^>]*[^>]*src=["\'](.+)["\'].*\/?>).*(\s*</a>)??[^<]*)#isU', $html ); -
/** * Filter: isc_public_caption_script_options */ apply_filters( 'isc_public_caption_script_options', $front_data, $options ); -
/** * Filter posts that should not output ISC information by their ID */ apply_filters( 'isc_public_excluded_post_ids', [] ); -
/** * Filter: isc_render_image_source_box allow to modify the output of the image * source box */ apply_filters( 'isc_render_image_source_box', ob_get_clean(), $content, $headline, $create_placeholder ); -
/** * Allow our setting section classes to validate or manipulate settings on save */ apply_filters( 'isc_settings_on_save_after_validation', $output, $input ); -
/** * Filter the standard source text */ apply_filters( 'isc_standard_source_text_for_attachment', $source, $attachment_id ); -
/** * Indexing the content for images here after we added overlays, so that we * could also count non-images with overlays */ apply_filters( 'isc_update_indexes_in_the_content', true ); -
/** * Run when any post meta information is stored by ISC */ do_action( 'isc_update_post_meta', $post_id, $key, $value ); -
apply_filters( 'isc_has_dom_document', class_exists( 'DOMDocument' ) ); -
apply_filters( 'isc_raw_attachment_get_license', get_post_meta( $attachment_id, 'isc_image_licence', true ), $attachment_id ); -
apply_filters( 'isc_raw_attachment_get_source', get_post_meta( $attachment_id, 'isc_image_source', true ), $attachment_id ); -
apply_filters( 'isc_raw_attachment_get_source_url', get_post_meta( $attachment_id, 'isc_image_source_url', true ), $attachment_id ); -
apply_filters( 'isc_raw_attachment_title', get_the_title( $attachment_id ), $attachment_id ); -
apply_filters( 'isc_add_sources_to_content_ignore_post_images_index', ISC_Log::ignore_caches() ); -
apply_filters( 'isc_admin_attachment_form_fields', $form_fields, $post, $options ); -
apply_filters( 'isc_admin_media_library_filters', [] ); -
do_action( 'isc_admin_notices' ); -
apply_filters( 'isc_admin_pages', [ 'settings_page_isc-settings', 'media_page_isc-sources', ] ); -
do_action( 'isc_admin_settings_overlay_included_images_after' ); -
do_action( 'isc_admin_settings_standard_source_options', $standard_source ); -
do_action( 'isc_admin_settings_template_after_plugin_options' ); -
do_action( 'isc_admin_settings_template_after_standard_source' ); -
do_action( 'isc_admin_sources_after_post_index_section' ); -
do_action( 'isc_admin_sources_storage_table_source_row', $_image_url ); -
apply_filters( 'isc_allow_empty_file_extension', __return_false() ); -
apply_filters( 'isc_allowed_image_extensions', $extensions ); -
apply_filters( 'isc_allowed_source_html', $allowed_html ); -
apply_filters( 'isc_can_load', ISC\Plugin::is_module_enabled( 'image_sources' ) ); -
apply_filters( 'isc_caption_apply_default_style', '__return_true' ); -
apply_filters( 'isc_caption_style_options', $caption_style_options ); -
apply_filters( 'isc_featured_image_source_pre_text', _x( 'Featured image: ', 'label of the featured image source, when displayed below post excerpts', 'image-source-control-isc' ) ); -
apply_filters( 'isc_filter_url_pre_get_image_by_url', $url ); -
apply_filters( 'isc_get_image_by_url_query', $raw_query, $newurl ); -
apply_filters( 'isc_global_list_included_data_options', $included_columns_options ); -
apply_filters( 'isc_global_list_included_images_options', $included_images_options ); -
apply_filters( 'isc_image_posts_meta_limit', 10 ); -
apply_filters( 'isc_images_in_posts', $image_ids, $post_id ); -
apply_filters( 'isc_list_included_images_options', $included_images_options ); -
apply_filters( 'isc_overlay_advanced_included_images_options', $options ); -
apply_filters( 'isc_overlay_html_markup_after', $markup_after, $id ); -
apply_filters( 'isc_overlay_html_markup_before', $markup_before, $id ); -
apply_filters( 'isc_overlay_html_source', $source, $image_id ); -
apply_filters( 'isc_overlay_included_images_options', $included_images_options ); -
apply_filters( 'isc_plugin_options_modules', $modules_options ); -
apply_filters( 'isc_public_add_source_captions_to_content', true ); -
apply_filters( 'isc_public_attachment_get_source', trim( get_post_meta( $attachment_id, 'isc_image_source', true ) ) ); -
apply_filters( 'isc_public_caption_regex_content', $content ); -
do_action( 'isc_public_global_list_after', $shortcode_attributes, $atts, $up_limit, $before_links, $after_links, $prev_text, $next_text ); -
apply_filters( 'isc_public_global_list_view_path', ISCPATH . 'public/views/global-list.php' ); -
apply_filters( 'isc_public_source_url_html', sprintf( '<a href="%2$s" target="_blank" rel="nofollow"%3$s>%1$s</a>', $source, esc_url_raw( $metadata['source_url'] ), $class_string ), $id, $metadata ); -
apply_filters( 'isc_public_source_url_html_classes', [], $id, $data, $args, $metadata ); -
apply_filters( 'isc_raw_attachment_get_ai_label', Ai_Labels::sanitize_label( get_post_meta( $attachment_id, Ai_Labels::META_KEY, true ) ), $attachment_id ); -
apply_filters( 'isc_source_list', ob_get_clean() ); -
apply_filters( 'isc_source_list_line', sprintf( '<li>%1$s: %2$s</li>', $atts_array['title'], $atts_array['source'] ), $atts_id, $atts_array, $attachments ); -
apply_filters( 'isc_sources_list_override_output', false, $post_id ); -
apply_filters( 'isc_use_standard_source_for_attachment', get_post_meta( $attachment_id, 'isc_image_source_own', true ), $attachment_id ); -
apply_filters( 'isc_valid_post_types', [ 'attachment' ] ); -
apply_filters( 'isc-licences-list', $isc_default_licenses );
Generated from Image Source Control Lite'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: