Lucid Lab Media & Products Cleanup 6.1.25 has 3 actions and 27 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 Lucid Lab Media & Products Cleanup fires an action
add_action( 'lucidlab_mpc_image_file_changed', function( $id, $arg2 ) {
// Your code runs here.
}, 10, 2 );
// Change a value Lucid Lab Media & Products Cleanup is about to use
add_filter( 'lucidlab_mpc_acf_media_field_types', 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
-
/** * Filters the ACF field types whose saved value holds attachment IDs. */ apply_filters( 'lucidlab_mpc_acf_media_field_types', array( 'image', 'file', 'gallery' ) ); -
/** * Filters the hosts whose scripts a CDN injects into pages; addresses on them * are not checked. */ apply_filters( 'lucidlab_mpc_crawler_edge_hosts', self::EDGE_HOSTS ); -
/** * Filters the same-site path prefixes that a CDN serves at its edge * (Cloudflare's /cdn-cgi/ and /cf-fonts/ by default). Such addresses are not * checked or counted: the CDN adds them to the page it sends to visitors, and * a request from the server itself never reaches the CDN. */ apply_filters( 'lucidlab_mpc_crawler_edge_paths', self::EDGE_PATHS ); -
/** * Filters how many pages the live-page check requests at the same time (1 to * 8). */ apply_filters( 'lucidlab_mpc_crawler_parallel', 4 ); -
/** * Filters how many images, files and links the live-page check requests at the * same time (1 to 16). */ apply_filters( 'lucidlab_mpc_crawler_parallel_assets', self::parallel_limit() ); -
/** * Filters how many requests per second the live-page check sends to this site * at most. */ apply_filters( 'lucidlab_mpc_crawler_rate', self::DEFAULT_RATE ); -
/** * Filters whether the live-page check skips a link. */ apply_filters( 'lucidlab_mpc_crawler_skip_url', $skip, $url ); -
/** * Filters the User-Agent of the live-page check. */ apply_filters( 'lucidlab_mpc_crawler_user_agent', $agent ); -
/** * Filters how many seconds one WP-Cron request keeps running batches of a * background job (0 to 120). */ apply_filters( 'lucidlab_mpc_cron_chain_seconds', $seconds ); -
/** * Filters extra media references that the scanners cannot find themselves. */ apply_filters( 'lucidlab_mpc_extra_references', array( 'ids' => array(), 'urls' => array(), ) ); -
/** * Fires after the file of an image was replaced or put back, so page caches * can purge. */ do_action( 'lucidlab_mpc_image_file_changed', $id, (array) ( $usage['post_ids'] ?? array() ) ); -
/** * Filters the number of Pro jobs that may run at the same time. */ apply_filters( 'lucidlab_mpc_max_concurrent_jobs', $max ); -
/** * Filters the "Get Pro" link target. */ apply_filters( 'lucidlab_mpc_pro_url', self::PRO_URL ); -
/** * Filters the table suffixes that Media & Products Cleanup never offers or * drops. */ apply_filters( 'lucidlab_mpc_protected_tables', $base ); -
/** * Filters custom field keys the reference index skips because they never hold * media. */ apply_filters( 'lucidlab_mpc_reference_skip_meta_keys', $keys ); -
/** * Filters extra database tables and columns that the media scanners read for * references. */ apply_filters( 'lucidlab_mpc_reference_sources', array() ); -
/** * Filters whether this site may send the install ping to lucidlab.eu after the * administrator opted in. Returning false stops it; without the opt-in it is * never sent. */ apply_filters( 'lucidlab_mpc_site_ping_allowed', true ); -
/** * Filters the version signature. Pro appends its own version, so a Pro update * also pings. */ apply_filters( 'lucidlab_mpc_site_ping_signature', LUCIDLAB_MPC_VERSION ); -
/** * Filters the seconds of work one batch of a long scan may use (2 to 60). */ apply_filters( 'lucidlab_mpc_step_seconds', $seconds ); -
apply_filters( 'wpml_active_languages', null ); -
do_action_ref_array( 'http_api_curl', array( &$handle, $args, $url ) ); -
do_action( 'http_api_debug', $response, 'response', 'WpOrg\Requests\Requests', $args, $url ); -
apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ), (string) ( $request['url'] ?? '' ) ); -
apply_filters( 'http_request_args', $args, $url ); -
apply_filters( 'http_request_version', '1.0', $url ); -
apply_filters( 'http_response', $response, $args, $url ); -
apply_filters( 'https_ssl_verify', $verify, $url ); -
apply_filters( 'lucidlab_mpc_image_delivery_enabled', true ); -
apply_filters( 'pre_http_request', false, $args, $url ); -
apply_filters( 'wpml_default_language', null );
Generated from Lucid Lab Media & Products Cleanup'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: