Infinite Uploads 3.5.2 has 41 actions and 98 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 Infinite Uploads fires an action
add_action( 'action_scheduler_completed_action', function( $action_id ) {
// Your code runs here.
}, 10, 1 );
// Change a value Infinite Uploads is about to use
add_filter( 'action_scheduler_claim_actions_order_by', function( $value, $claim_id, $hooks ) {
// Change $value here.
return $value;
}, 10, 3 );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
-
/** * Fires after a scheduled action has been completed. */ do_action( 'action_scheduler_completed_action', $action_id ); -
/** * Fires when Action Scheduler is ready: it is safe to use the procedural API * after this point. */ do_action( 'action_scheduler_init' ); -
/** * Action when a new object has been uploaded to cloud storage. */ do_action( 'infinite_uploads_putObject', $params ); -
/** * This filter is documented in wp-includes/pluggable.php */ do_action( 'wp_mail_failed', new WP_Error( 'wp_mail_failed', $e->getMessage(), $mail_error_data ) ); -
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_post_args", $args ); -
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_query_args", $args ); -
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_query_url", $url ); -
/** * Allow custom processing before updating a table schema. */ do_action( 'action_scheduler_before_schema_update', $table, $this->db_version ); -
action_scheduler_claim_actions_order_by
filter Used by 112 plugins → Copy link Customise this hook/** * Sets the order-by clause used in the action claim query. */ apply_filters( 'action_scheduler_claim_actions_order_by', 'ORDER BY priority ASC, attempts ASC, scheduled_date_gmt ASC, action_id ASC', $claim_id, $hooks ); -
/** * Filter the batch size when cleaning the queue. */ apply_filters( 'action_scheduler_cleanup_batch_size', $this->batch_size ); -
action_scheduler_db_supports_skip_locked
filter Used by 76 plugins → Copy link Customise this hook/** * Filter whether the database supports the SKIP LOCKED modifier for queries. */ apply_filters( 'action_scheduler_db_supports_skip_locked', $is_supported ); -
action_scheduler_default_cleaner_statuses
filter Used by 98 plugins → Copy link Customise this hook/** * Filter the statuses when cleaning the queue. */ apply_filters( 'action_scheduler_default_cleaner_statuses', $this->default_statuses_to_purge ); -
action_scheduler_ensure_recurring_actions
action Used by 76 plugins → Copy link Customise this hook/** * Fires to allow extensions to verify and ensure their recurring actions are * scheduled. */ do_action( 'action_scheduler_ensure_recurring_actions' ); -
/** * Allows 3rd party code to add extra action counts (used in filters in the * list table). */ apply_filters( 'action_scheduler_extra_action_counts', $extra_actions ); -
/** * Notify 3rd party code of exceptions when deleting a completed action older * than the retention period */ do_action( "action_scheduler_failed_{$context}_action_deletion", $action_id, $e, $lifespan, count( $actions_to_delete ) ); -
/** * Runs when action execution fails. */ do_action( 'action_scheduler_failed_execution', $action_id, $e, $context ); -
/** * Runs when action validation fails. */ do_action( 'action_scheduler_failed_validation', $action_id, $e, $context ); -
/** * Fires in the early stages of Action Scheduler init hook. */ do_action( 'action_scheduler_pre_init' ); -
action_scheduler_queue_runner_flush_cache
filter Used by 120 plugins → Copy link Customise this hook/** * When an external object cache is in use, and when wp_cache_flush_runtime() * is not available, then normally the cache will not be flushed after * processing a batch of actions (to avoid a performance penalty for other * processes). */ apply_filters( 'action_scheduler_queue_runner_flush_cache', false ); -
action_scheduler_recurring_action_failure_threshold
filter Used by 100 plugins → Copy link Customise this hook/** * Controls the failure threshold for recurring actions. */ apply_filters( 'action_scheduler_recurring_action_failure_threshold', 5 ); -
action_scheduler_recurring_action_is_consistently_failing
filter Used by 96 plugins → Copy link Customise this hook/** * If a recurring action is assessed as consistently failing, it will not be * rescheduled. This hook provides a way to observe and optionally override * that assessment. */ apply_filters( 'action_scheduler_recurring_action_is_consistently_failing', $first_action_id_with_the_same_hook === $first_failing_action_id, $action ); -
/** * Filter the minimum scheduled date age for action deletion. */ apply_filters( 'action_scheduler_retention_period', $this->month_in_seconds ); -
action_scheduler_stored_action_instance
filter Used by 120 plugins → Copy link Customise this hook/** * Allow 3rd party code to change the instantiated action for a given hook, * args, schedule and group. */ apply_filters( 'action_scheduler_stored_action_instance', $action, $hook, $args, $schedule, $group, $priority ); -
/** * Filters the upload folders the CDN should only serve with a signed link. */ apply_filters( 'infinite_uploads_protected_download_folders', $folders ); -
/** * Filter the parameters passed to object storage via AWS PHP SDK Theses are * the parameters passed to S3Client::putObject() See; * https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-s3-2006-03-01.html#putobj * ect */ apply_filters( 'infinite_uploads_putObject_params', $params ); -
/** * Filters the find/replace url rewriter that replaces matches in HTML output * with CDN url. */ apply_filters( 'infinite_uploads_rewrite_url', $replace, $matches ); -
/** * Filter the parameters passed when creating the via the AWS PHP SDK. See; * https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configurati * on.html */ apply_filters( 'infinite_uploads_s3_client_params', $params ); -
/** * Filters the capability that is checked for access to Infinite Uploads * settings page. */ apply_filters( 'infinite_uploads_settings_capability', ( is_multisite() ? 'manage_network_options' : 'manage_options' ) ); -
/** * Filters how long a signed download link stays valid, in seconds. */ apply_filters( 'infinite_uploads_signed_url_ttl', $ttl, $url ); -
/** * Filters the directory-name keyword patterns. If any directory segment of the * path contains one of these substrings (case-insensitive), the path is * excluded. Distilled from cross-plugin frequency analysis in the * compatibility audit; see the $directory_patterns docblock. */ apply_filters( 'infinite_uploads_sync_directory_patterns', $this->directory_patterns, $path ); -
/** * Filters the excluded file-extension list. Files matching one of these * extensions (case-insensitive) are kept on local disk. The default set covers * PHP variants — allow_url_include=0 blocks require_once through iu://, so * any plugin that generates PHP under uploads must have it stay local to * execute. */ apply_filters( 'infinite_uploads_sync_excluded_extensions', $this->excluded_extensions, $path ); -
/** * This filter is documented in is_excluded(). */ apply_filters( 'infinite_uploads_sync_exclusions', $this->exclusions ); -
/** * Filters the media extensions the directory-name patterns may never exclude. * A naming heuristic cannot tell `travel-logs` (photos) from `wc-logs` (plugin * state), so it is not allowed to act on media at all; see the * $media_extensions docblock. Literals and extension rules are unaffected. */ apply_filters( 'infinite_uploads_sync_media_extensions', $this->media_extensions, $path ); -
/** * Fires after PHPMailer is initialized. */ do_action_ref_array( 'phpmailer_init', array( &$phpmailer ) ); -
/** * Provides an opportunity to short-circuit the default process for enqueuing * async actions. */ apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ); -
/** * Provides an opportunity to short-circuit the default process for enqueuing * cron actions. */ apply_filters( 'pre_as_schedule_cron_action', null, $timestamp, $schedule, $hook, $args, $group, $priority, $unique ); -
/** * Provides an opportunity to short-circuit the default process for enqueuing * recurring actions. */ apply_filters( 'pre_as_schedule_recurring_action', null, $timestamp, $interval_in_seconds, $hook, $args, $group, $priority, $unique ); -
/** * Provides an opportunity to short-circuit the default process for enqueuing * single actions. */ apply_filters( 'pre_as_schedule_single_action', null, $timestamp, $hook, $args, $group, $priority, $unique ); -
/** * Filters whether to preempt sending an email. */ apply_filters( 'pre_wp_mail', null, $atts ); -
/** * Filters the wp_mail() arguments. */ apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) ); -
/** * Filters the default wp_mail() charset. */ apply_filters( 'wp_mail_charset', $charset ); -
/** * Filters the wp_mail() content type. */ apply_filters( 'wp_mail_content_type', $content_type ); -
/** * Filters the email address to send from. */ apply_filters( 'wp_mail_from', $from_email ); -
/** * Filters the name to associate with the "from" email address. */ apply_filters( 'wp_mail_from_name', $from_name ); -
/** * Fires after PHPMailer has successfully sent an email. */ do_action( 'wp_mail_succeeded', $mail_data ); -
/** * This filter is documented in wp-includes/class-wp-query.php */ apply_filters( 'wp_query_search_exclusion_prefix', '-' ); -
apply_filters( 'infinite_uploads_ajax_timelimit', $default_timelimit ); -
do_action( 'action_scheduler_after_process_queue' ); -
do_action( 'action_scheduler_before_process_queue' ); -
do_action( 'action_scheduler_bulk_cancel_actions', $action_ids ); -
do_action( 'action_scheduler_canceled_action', $action_id ); -
do_action( 'action_scheduler_deleted_action', $action_id ); -
do_action( 'action_scheduler_failed_fetch_action', $action_id, $exception ); -
action_scheduler_list_table_column_args
filter Used by 120 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_list_table_column_args', '', $row ); -
action_scheduler_maximum_execution_time
filter Used by 120 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_maximum_execution_time', $time_limit ); -
do_action( 'action_scheduler_stored_action', $action_id ); -
do_action( 'action_scheduler/migrated_action', $source_action_id, $destination_action_id, $this->source, $this->destination ); -
apply_filters( 'image_make_intermediate_size', $filename ); -
apply_filters( 'infinite_uploads_bucket_url', 'https://' . $bucket . '.s3.amazonaws.com' . $path ); -
apply_filters( 'infinite_uploads_video_api_host', self::VIDEO_API_HOST ); -
apply_filters( 'infinite_uploads_video_public_embed_host', self::VIDEO_PUBLIC_EMBED_HOST ); -
do_action( 'wphb_clear_page_cache' ); -
apply_filters( 'action_scheduler_admin_notice_html', $action_message_html, $action, $notification ); -
apply_filters( 'action_scheduler_admin_view_class', 'ActionScheduler_AdminView' ); -
do_action( 'action_scheduler_after_execute', $action_id, $action, $context ); -
action_scheduler_allow_async_request_runner
filter Used by 121 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_allow_async_request_runner', $allow ); -
action_scheduler_async_request_sleep_seconds
filter Used by 121 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_async_request_sleep_seconds', 5, $this ); -
do_action( 'action_scheduler_before_execute', $action_id, $context ); -
do_action( 'action_scheduler_begin_execute', $action_id, $context ); -
apply_filters( 'action_scheduler_check_pastdue_actions', current_user_can( 'manage_options' ) ); -
action_scheduler_enable_recreate_data_store
filter Used by 124 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_enable_recreate_data_store', true ); -
do_action( 'action_scheduler_execution_ignored', $action_id, $context ); -
do_action( 'action_scheduler_failed_action', $action_id, $timeout ); -
action_scheduler_failed_to_schedule_next_instance
action Used by 120 plugins → Copy link Customise this hookdo_action( 'action_scheduler_failed_to_schedule_next_instance', $action_id, $e, $action ); -
apply_filters( 'action_scheduler_failure_period', $time_limit ); -
action_scheduler_load_deprecated_functions
filter Used by 120 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_load_deprecated_functions', true ); -
apply_filters( 'action_scheduler_lock_class', 'ActionScheduler_OptionLock' ); -
apply_filters( 'action_scheduler_lock_duration', self::$lock_duration, $lock_type ); -
apply_filters( 'action_scheduler_logger_class', 'ActionScheduler_wpCommentLogger' ); -
apply_filters( 'action_scheduler_maximum_args_length', 191 ); -
action_scheduler_maximum_execution_time_likely_to_be_exceeded
filter Used by 120 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_maximum_execution_time_likely_to_be_exceeded', $likely_to_be_exceeded, $this, $processed_actions, $execution_time, $max_execution_time ); -
apply_filters( 'action_scheduler_memory_exceeded', $memory_exceeded, $this ); -
apply_filters( 'action_scheduler_migrate_data_store', false ); -
action_scheduler_migration_dependencies_met
filter Used by 120 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_migration_dependencies_met', true ); -
apply_filters( 'action_scheduler_pastdue_actions_check', $check, $num_pastdue_actions, $threshold_seconds, $threshold_min ); -
action_scheduler_pastdue_actions_check_interval
filter Used by 99 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_pastdue_actions_check_interval', round( $threshold_seconds / 4 ), $threshold_seconds ); -
action_scheduler_pastdue_actions_check_pre
filter Used by 100 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_pastdue_actions_check_pre', null ); -
action_scheduler_pastdue_actions_extra_notices
action Used by 99 plugins → Copy link Customise this hookdo_action( 'action_scheduler_pastdue_actions_extra_notices', $query_args ); -
apply_filters( 'action_scheduler_pastdue_actions_min', 1 ); -
action_scheduler_pastdue_actions_seconds
filter Used by 104 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_pastdue_actions_seconds', DAY_IN_SECONDS ); -
apply_filters( 'action_scheduler_post_status_args', $args ); -
action_scheduler_post_status_failed_labels
filter Used by 120 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_post_status_failed_labels', $labels ); -
action_scheduler_post_status_running_labels
filter Used by 120 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_post_status_running_labels', $labels ); -
apply_filters( 'action_scheduler_post_type_args', $args ); -
do_action( 'action_scheduler_pre_theme_init' ); -
action_scheduler_queue_runner_batch_size
filter Used by 121 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_queue_runner_batch_size', 25 ); -
apply_filters( 'action_scheduler_queue_runner_class', 'ActionScheduler_QueueRunner' ); -
action_scheduler_queue_runner_concurrent_batches
filter Used by 122 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_queue_runner_concurrent_batches', 1 ); -
action_scheduler_queue_runner_time_limit
filter Used by 125 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_queue_runner_time_limit', $time_limit ); -
do_action( 'action_scheduler_reset_action', $action_id ); -
do_action( 'action_scheduler_run_queue', 'Async Request' ); -
apply_filters( 'action_scheduler_run_schedule', self::WP_CRON_SCHEDULE ); -
apply_filters( 'action_scheduler_store_class', self::DEFAULT_CLASS ); -
apply_filters( 'action_scheduler_stored_action_class', $action_class, $status, $hook, $args, $schedule, $group ); -
apply_filters( 'action_scheduler_taxonomy_args', $args ); -
apply_filters( 'action_scheduler_timeout_period', $time_limit ); -
do_action( 'action_scheduler_unexpected_shutdown', $this->action_id, $error ); -
action_scheduler_use_cpu_execution_time
filter Used by 122 plugins → Copy link Customise this hookapply_filters( 'action_scheduler_use_cpu_execution_time', defined( 'PANTHEON_ENVIRONMENT' ) ); -
do_action( 'action_scheduler/created_table', $updated_table, $table ); -
action_scheduler/migrate_action_dry_run
action Used by 120 plugins → Copy link Customise this hookdo_action( 'action_scheduler/migrate_action_dry_run', $source_action_id ); -
do_action( 'action_scheduler/migrate_action_failed', $source_action_id, $this->source, $this->destination ); -
action_scheduler/migrate_action_incomplete
action Used by 120 plugins → Copy link Customise this hookdo_action( 'action_scheduler/migrate_action_incomplete', $source_action_id, $destination_action_id, $this->source, $this->destination ); -
action_scheduler/migration_batch_complete
action Used by 120 plugins → Copy link Customise this hookdo_action( 'action_scheduler/migration_batch_complete', $action_ids ); -
apply_filters( 'action_scheduler/migration_batch_size', 250 ); -
action_scheduler/migration_batch_starting
action Used by 120 plugins → Copy link Customise this hookdo_action( 'action_scheduler/migration_batch_starting', $action_ids ); -
do_action( 'action_scheduler/migration_complete' ); -
apply_filters( 'action_scheduler/migration_config', $config ); -
apply_filters( 'action_scheduler/migration_interval', 0 ); -
do_action( 'action_scheduler/no_action_to_migrate', $source_action_id, $this->source, $this->destination ); -
do_action( 'action_scheduler/progress_tick', $this->total_ticks ); -
apply_filters( 'admin_memory_limit', $wp_max_limit ); -
apply_filters( 'cmplz_zip_file_path', $upload_dir . $name ); -
apply_filters( 'https_local_ssl_verify', false ); -
apply_filters( 'infinite_uploads_api_timeout', 25, $remote_path, $method ); -
apply_filters( 'infinite_uploads_backlog_prune_chunk', 2000 ); -
apply_filters( 'infinite_uploads_backlog_prune_timelimit', 2.0 ); -
apply_filters( 'infinite_uploads_download_scope_limit', 500 ); -
apply_filters( 'infinite_uploads_elementor_force_internal_css', true ); -
apply_filters( 'infinite_uploads_exclude_tree_max_nodes', (int) INFINITE_UPLOADS_EXCLUDE_TREE_MAX_NODES ); -
apply_filters( 'infinite_uploads_media_cleanup_capability', 'manage_options' ); -
apply_filters( 'infinite_uploads_media_cleanup_plan_eligible', $eligible, $api_data ); -
apply_filters( 'infinite_uploads_media_usage_path_map_max', self::PATH_MAP_MAX ); -
apply_filters( 'infinite_uploads_replacement_urls', $replacements ); -
apply_filters( 'infinite_uploads_stat_probe_shortcut', [ '.htaccess', 'index.php', 'index.html', 'index.htm', 'web.config', ], $path ); -
apply_filters( 'infinite_uploads_sync_no_progress_backoff', 5 * MINUTE_IN_SECONDS ); -
apply_filters( 'infinite_uploads_video_config', null, $key, $data ); -
apply_filters( 'infinite_uploads_video_embed_host', self::VIDEO_EMBED_HOST ); -
apply_filters( 'infinite_uploads_video_embed_host_v2', self::VIDEO_EMBED_HOST_V2 ); -
apply_filters( 'infinite_uploads_video_public_embed_host_v2', self::VIDEO_PUBLIC_EMBED_HOST_V2 );
Generated from Infinite Uploads'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: