AutoMLP 2.0.0 has 9 actions and 29 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 AutoMLP fires an action
add_action( 'automlp_job_completed', function( $job_id, $job, $arg3 ) {
// Your code runs here.
}, 10, 3 );
// Change a value AutoMLP is about to use
add_filter( 'automlp_allowed_target_languages', function( $value, $arg2 ) {
// Change $value here.
return $value;
}, 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
-
/** * Filter the languages the queue will accept. */ apply_filters( 'automlp_allowed_target_languages', array( $wizard ), 'rest' ); -
/** * Filter the per-request AI timeout in seconds. */ apply_filters( 'automlp_ai_request_timeout', self::TIMEOUT ); -
/** * Filter whether the queue-based flow is active. */ apply_filters( 'automlp_background_flow_enabled', $enabled ); -
/** * Filters whether the free plugin translates a post. */ apply_filters( 'automlp_is_supported_post', $supported, $post ); -
/** * Fires after a job is written successfully. */ do_action( 'automlp_job_completed', $job_id, $job, array( 'translated' => $translated, 'source_map' => $source_map, 'written' => is_array( $written ) ? $written : array(), 'time_taken' => (int) max( 0, round( microtime( true ) - $started ) ), 'provider' => $gateway->provider(), ) ); -
/** * Filter how many jobs one run may process. */ apply_filters( 'automlp_queue_concurrency', self::JOBS_PER_RUN ); -
/** * Filter the maximum number of parallel queue processes. */ apply_filters( 'automlp_queue_max_slots', self::tuning( 'max_slots', self::MAX_SLOTS ) ); -
/** * Filter how long one queue run may keep claiming jobs. */ apply_filters( 'automlp_queue_run_budget', $budget ); -
/** * Filter whether the queue chains its own runs between cron ticks. */ apply_filters( 'automlp_queue_self_spawn', true ); -
/** * Filter the approximate tokens sent per AI request. */ apply_filters( 'automlp_translation_batch_tokens', \AUTOMLP_WPML\Includes\Queue\Dispatcher::tuning( 'batch_tokens', self::TOKENS_PER_BATCH ), $this->provider ); -
/** * Filter the finished translation prompt. */ apply_filters( 'automlp_translation_prompt', $prompt, $strings, $from_lang, $to_lang ); -
/** * Elementor template post types, never supported. */ apply_filters( 'automlp_unsupported_template_post_types', array( 'elementor_library', 'e-landing-page', 'e-floating-buttons', 'elementor_snippet', 'elementor_font', 'elementor_icons' ) ); -
/** * Filters whether another page builder owns the post. */ apply_filters( 'automlp_uses_other_builder', $other, $post ); -
/** * Hand translated fields back to whatever writes them. */ apply_filters( 'automlp_write_translation', null, $translated, $job, $source_map ); -
/** * Allow other plugins to register notices dynamically. Example usage in other * plugins: do_action('cpf_cpfm_register_notice', 'crypto', [ 'title' => * 'Crypto Plugin Notice', 'message' => 'This is a crypto dashboard setup * notice.', 'pages' => ['dashboard', 'cpfm_'], ]); */ do_action( 'cpfm_register_notice' ); -
/** * This filter is documented in wp-includes/class-wp-http-streams.php */ apply_filters( 'https_local_ssl_verify', false ); -
/** * Filter the translation editor URL, same hook WPML uses internally. */ apply_filters( 'icl_job_edit_url', $url, $wpml_job_id ); -
/** * This filter is documented in * sitepress-multilingual-cms/classes/ATE/Review/ApplyJob.php */ apply_filters( 'wpml_tm_skip_element_type_from_review', $excluded, $type ); -
apply_filters( 'wpml_active_languages', null, 'skip_missing=0' ); -
apply_filters( 'wpml_element_trid', null, $post_id, 'post_' . $post_type ); -
do_action( 'wpml_tm_send_post_jobs', $batch, 'post', null ); -
apply_filters( 'wpml_translated_language_name', null, $code ); -
do_action( 'automlp_ai_admin_notices' ); -
apply_filters( 'automlp_dashboard_tabs', array( 'dashboard' => __( 'Dashboard', 'wpml-translation-check' ), 'settings' => __( 'Settings', 'wpml-translation-check' ), 'license' => __( 'License', 'wpml-translation-check' ), 'free-vs-pro' => __( 'Free vs Pro', 'wpml-translation-check' ), ) ); -
apply_filters( 'automlp_queue_purge_after_days', 180 ); -
apply_filters( 'automlp_queue_slim_after_days', 30 ); -
apply_filters( 'automlp_translation_chunk_chars', self::CHARS_PER_CHUNK ); -
do_action( "cpfm_after_opt_in_{$plugin_name}", $category ); -
apply_filters( 'wpml_current_language', null ); -
apply_filters( 'wpml_default_language', 'en' ); -
apply_filters( 'wpml_element_type', $post_type ); -
apply_filters( 'wpml_get_element_translations', array(), $trid, 'post_' . $post_type ); -
apply_filters( 'wpml_object_id', $source_id, $post_type, false, $to_lang ); -
wpml_pb_finished_adding_string_translations
action Used by 2 plugins → Copy link Customise this hookdo_action( 'wpml_pb_finished_adding_string_translations', (int) $target_id, (int) $source_id, array() ); -
do_action( 'wpml_pb_resave_post_translation', $element, false ); -
do_action( 'wpml_save_translation_data', $payload ); -
apply_filters( 'wpml_tm_batch_factory_elements', $elements, $batch_name ); -
do_action( 'wpml_tm_send_st-batch_jobs', $batch, 'st-batch', null );
Generated from AutoMLP'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: