WP Multilang 2.4.35 has 40 actions and 97 filters, read directly from its source code on Nov 17, 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 WP Multilang fires an action
add_action( 'update_postmeta', function( $meta_id, $object_id, $meta_key, $meta_value ) {
// Your code runs here.
}, 10, 4 );
// Change a value WP Multilang is about to use
add_filter( 'nav_menu_attr_title', 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
-
/** * Fires immediately before meta of a specific type is added. */ do_action( "add_{$this->object_type}_meta", $object_id, $meta_key, $_meta_value ); -
/** * Fires immediately after meta of a specific type is added. */ do_action( "added_{$this->object_type}_meta", $mid, $object_id, $meta_key, $_meta_value ); -
gallery_style
filter/** * Filters the default gallery shortcode CSS styles. */ apply_filters( 'gallery_style', $gallery_style . $gallery_div ); -
img_caption_shortcode_width
filter/** * Filters the width of an image's caption. */ apply_filters( 'img_caption_shortcode_width', $width, $atts, $content ); -
the_title
filter/** * This filter is documented in wp-includes/post-template.php */ apply_filters( 'the_title', $original_object->post_title, $original_object->ID ); -
/** * Fires immediately before updating metadata of a specific type. */ do_action( "update_{$this->object_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value ); -
update_postmeta
action/** * Fires immediately before updating a post's metadata. */ do_action( 'update_postmeta', $meta_id, $object_id, $meta_key, $meta_value ); -
/** * Fires immediately after updating metadata of a specific type. */ do_action( "updated_{$this->object_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value ); -
updated_postmeta
action/** * Fires immediately after updating a post's metadata. */ do_action( 'updated_postmeta', $meta_id, $object_id, $meta_key, $meta_value ); -
use_default_gallery_style
filter/** * Filters whether to print default gallery styles. */ apply_filters( 'use_default_gallery_style', ! $html5 ); -
/** * Sanitize the value of an option. */ apply_filters( 'wpm_admin_settings_sanitize_option', $value, $option, $raw_value ); -
/** * Sanitize the value of an option by option name. */ apply_filters( "wpm_admin_settings_sanitize_option_{$option_name}", $value, $option, $raw_value ); -
/** * Sanitize the value of a setting. */ apply_filters( 'wpm_widget_settings_sanitize_option', $instance[ $key ], $new_instance, $key, $setting ); -
wpm_get_settings_{$this->id}
filterapply_filters( "wpm_get_settings_{$this->id}", $settings ); -
wpm_{$this->id}_settings
filterapply_filters( "wpm_{$this->id}_settings", array( array( 'title' => esc_html__( 'Actions', 'wp-multilang' ), 'type' => 'title', 'desc' => '', 'id' => 'additional_options' ), array( 'title' => esc_html__( 'Installed localizations', 'wp-multilang' ), 'id' => 'wpm_installed_localizations', 'type' => 'localizations', ), array( 'title' => esc_html__( 'qTranslate import', 'wp-multilang' ), 'id' => 'wpm_qtx_import', 'type' => 'qtx_import', ), ... ); -
apply_filters( "wpm_{$this->object_type}_fields_config", $config[ "{$this->object_type}_fields" ] ); -
wpm_{$meta_key}_meta_config
filterapply_filters( "wpm_{$meta_key}_meta_config", $object_fields_config[ $meta_key ], false, $object_id ); -
apply_filters( "wpm_{$this->object_type}_meta_{$meta_key}_config", $meta_config, $object_id ); -
wpm_cached_widget_id
filterapply_filters( 'wpm_cached_widget_id', $this->widget_id ); -
do_action( 'wpm_display_license_status_msg' ); -
apply_filters( "{$this->identifier}_cron_interval", 5 ); -
active_plugins
filterapply_filters( 'active_plugins', get_option( 'active_plugins' ), true ); -
apply_filters( "wpm_get_{$meta_key}_meta_value", $value ); -
apply_filters( "wpm_get_{$this->object_type}_meta_{$meta_key}_value", $value ); -
wpm_get_language_from_url
filterapply_filters( 'wpm_get_language_from_url', wpm_get_user_language() ); -
wpm_get_meta_value
filterapply_filters( 'wpm_get_meta_value', $value, $meta_key ); -
wpm_language_settings
actiondo_action( 'wpm_language_settings', $code, $i ); -
wpm_ml_translation_debug_log
filterapply_filters( 'wpm_ml_translation_debug_log', true ); -
wpm_save_languages
filterapply_filters( 'wpm_save_languages', $languages, $value ); -
apply_filters( "wpm_site_option_{$option}_config", isset( $this->site_options_config[ $option ] ) ? $this->site_options_config[ $option ] : null ); -
wpm_sitemap_alternate_links
filterapply_filters( 'wpm_sitemap_alternate_links', $alternate, $url['loc'], $code ); -
wpm_unslash_form_meta_value
filterapply_filters( 'wpm_unslash_form_meta_value', $value, $meta_key ); -
apply_filters( "{$this->identifier}_default_time_limit", 20 ); -
apply_filters( "{$this->identifier}_memory_exceeded", $return ); -
apply_filters( "{$this->identifier}_queue_lock_time", $lock_duration ); -
apply_filters( "{$this->identifier}_time_exceeded", $return ); -
before_wpm_init
actiondo_action( 'before_wpm_init' ); -
https_local_ssl_verify
filterapply_filters( 'https_local_ssl_verify', false ); -
widget_title
filterapply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); -
wp_wpm_updater_cron
actiondo_action( 'wp_wpm_updater_cron' ); -
apply_filters( "wpm_{$active_theme_name}_integration", $integrations[ $active_theme_name ] ); -
wpm_{$name}_json_file
filterapply_filters( "wpm_{$name}_json_file", $file ); -
wpm_{$plugin}_integration
filterapply_filters( "wpm_{$plugin}_integration", $integrations[ $plugin ] ); -
apply_filters( "wpm_acf_{$field['type']}_config", $acf_field_config, $value, $post_id, $field ); -
apply_filters( "wpm_acf_{$info['type']}_config", null, $value, $post_id, $field ); -
apply_filters( "wpm_acf_field_{$field['type']}_config", $default_config ); -
apply_filters( "wpm_acf_field_name_{$field['name']}_config", $acf_field_config ); -
apply_filters( "wpm_acf_name_{$field['_name']}_config", $acf_field_config, $value, $post_id, $field ); -
apply_filters( "wpm_add_{$meta_key}_meta_value", $meta_value ); -
apply_filters( "wpm_add_{$this->object_type}_meta_{$meta_key}_value", $meta_value ); -
wpm_add_meta_value
filterapply_filters( 'wpm_add_meta_value', $meta_value, $meta_key ); -
do_action( "wpm_admin_field_{$value['type']}", $value ); -
wpm_admin_html_tags
filterapply_filters( 'wpm_admin_html_tags', $config['admin_html_tags'] ); -
wpm_admin_pages
filterapply_filters( 'wpm_admin_pages', $config['admin_pages'] ); -
wpm_after_template_part
actiondo_action( 'wpm_after_template_part', $template, $slug, $name, $custom_dir, $args ); -
do_action( "wpm_ajax_{sanitize_text_field($action)}" ); -
wpm_alternate_links
filterapply_filters( 'wpm_alternate_links', $hreflangs, wpm_get_current_url() ); -
wpm_before_template_part
actiondo_action( 'wpm_before_template_part', $template, $slug, $name, $custom_dir, $args ); -
wpm_changed_language
actiondo_action( 'wpm_changed_language' ); -
do_action( 'wpm_clear_blockeditor_post_data_cache', $post_id, $is_block_editor ); -
wpm_customizer_url
filterapply_filters( 'wpm_customizer_url', home_url() ); -
apply_filters( 'wpm_disable_translation_options', $settings ); -
wpm_enable_auto_update_db
filterapply_filters( 'wpm_enable_auto_update_db', false ); -
wpm_exclude_post_types
filterapply_filters( 'wpm_exclude_post_types', $unset_cpt ); -
apply_filters( 'wpm_filter_autotranslate_localize_data', $main_params ); -
apply_filters( 'wpm_filter_block_editor_post_data', $key, $post_id ); -
apply_filters( "wpm_filter_new_{$meta_key}_meta_value", $meta_value, $old_value, $meta_config ); -
apply_filters( "wpm_filter_old_{$meta_key}_meta_value", $old_value, $meta_value, $meta_config ); -
apply_filters( 'wpm_filter_string_to_ml_array', $string ); -
wpm_filter_xliff_data
filterapply_filters( 'wpm_filter_xliff_data', $data, $post ); -
wpm_flags_dir
filterapply_filters( 'wpm_flags_dir', wpm()->flags_dir() ); -
wpm_flags_path
filterapply_filters( 'wpm_flags_path', wpm()->flags_path() ); -
wpm_flush_rewrite_rules
actiondo_action( 'wpm_flush_rewrite_rules' ); -
wpm_general_settings
filterapply_filters( 'wpm_general_settings', array( array( 'title' => esc_html__( 'General options', 'wp-multilang' ), 'type' => 'title', 'desc' => sprintf( __( 'Read <a href="%s" target="_blank">Google guidelines</a> before.', 'wp-multilang' ), esc_url( 'https://support.google.com/webmasters/answer/182192?hl=' . wpm_get_user_language() ) ), 'id' => 'general_options' ), array( 'title' => esc_html__( 'Site Language', 'wp-multilang' ), 'des... ); -
wpm_get_current_url
filterapply_filters( 'wpm_get_current_url', $url, $lang ); -
wpm_get_original_home_url
filterapply_filters( 'wpm_get_original_home_url', $home_url ); -
wpm_get_sections_{$this->id}
filterapply_filters( "wpm_get_sections_{$this->id}", array() ); -
wpm_get_settings_pages
filterapply_filters( 'wpm_get_settings_pages', $settings ); -
wpm_get_template_part
filterapply_filters( 'wpm_get_template_part', $template, $slug, $name ); -
do_action( "wpm_hide_{$hide_notice}_notice" ); -
wpm_init
actiondo_action( 'wpm_init' ); -
wpm_installed
actiondo_action( 'wpm_installed' ); -
wpm_integrations
filterapply_filters( 'wpm_integrations', array( 'advanced-custom-fields' => __NAMESPACE__ . '\Integrations\WPM_Acf', 'advanced-custom-fields-pro' => __NAMESPACE__ . '\Integrations\WPM_Acf', 'secure-custom-fields' => __NAMESPACE__ . '\Integrations\WPM_Acf', 'all-in-one-seo-pack' => __NAMESPACE__ . '\Integrations\WPM_AIOSP', 'better-search' => __NAMESPACE__ . '\Integrations\WPM_Better_Search', 'buddypress' => __NAMESPACE__ . '\Integrati... ); -
wpm_integrations_init
actiondo_action( 'wpm_integrations_init' ); -
wpm_json_files
filterapply_filters( 'wpm_json_files', self::$config_files ); -
wpm_load_config
filterapply_filters( 'wpm_load_config', $this->config ); -
wpm_loaded
actiondo_action( 'wpm_loaded' ); -
apply_filters( 'wpm_localize_autotranslate_params', $main_params ); -
wpm_localize_filter
filterapply_filters( 'wpm_localize_filter', $script_data, 'wpm_localize_data' ); -
apply_filters( 'wpm_modify_woocommerce_product_attributes_config', $object_fields_config, $meta_key, $meta_value, $object_id ); -
wpm_option_{$option}_config
filterapply_filters( "wpm_option_{$option}_config", isset( $this->options_config[ $option ] ) ? $this->options_config[ $option ] : null ); -
wpm_options_config
filterapply_filters( 'wpm_options_config', $config['options'] ); -
apply_filters( "wpm_post_{$data['post_type']}_field_{$key}_config", $post_config[ $key ], $content ); -
wpm_post_{$post_type}_config
filterapply_filters( "wpm_post_{$post_type}_config", isset( $posts_config[ $post_type ] ) ? $posts_config[ $post_type ] : null ); -
wpm_post_field_{$key}_config
filterapply_filters( "wpm_post_field_{$key}_config", $post_field_config, $content ); -
wpm_posts_config
filterapply_filters( 'wpm_posts_config', $config['post_types'] ); -
do_action( "wpm_process_{$post->post_type}_meta", $post_id, $post ); -
wpm_process_meta
actiondo_action( 'wpm_process_meta', $post_id, $post ); -
wpm_rest_schema_languages
filterapply_filters( 'wpm_rest_schema_languages', array( 'enable' => array( 'type' => 'boolean', ), 'code' => array( 'type' => 'string', ), 'locale' => array( 'type' => 'string', ), 'name' => array( 'type' => 'string', ), 'translation' => array( 'type' => 'string', ), 'date' => array( 'type' => 'string', ), 'time' => array( 'type' => 'string', ), 'flag' => array( 'type' => 'string', ), ) ); -
apply_filters( 'wpm_role_translator_capabilities', $capabilities ); -
apply_filters( 'wpm_role_translator_capability_types', array() ); -
wpm_sections_{$current_tab}
actiondo_action( "wpm_sections_{$current_tab}" ); -
wpm_settings_{$current_tab}
actiondo_action( "wpm_settings_{$current_tab}" ); -
do_action( "wpm_settings_{sanitize_title($value['id'])}" ); -
do_action( "wpm_settings_{sanitize_title($value['id'])}_after" ); -
do_action( "wpm_settings_{sanitize_title($value['id'])}_end" ); -
apply_filters( "wpm_settings_form_method_tab_{$current_tab}", 'post' ); -
do_action( "wpm_settings_save_{$current_tab}" ); -
wpm_settings_saved
actiondo_action( 'wpm_settings_saved' ); -
wpm_settings_start
actiondo_action( 'wpm_settings_start' ); -
wpm_settings_tabs
actiondo_action( 'wpm_settings_tabs' ); -
wpm_settings_tabs_array
filterapply_filters( 'wpm_settings_tabs_array', array() ); -
wpm_show_admin_notice
filterapply_filters( 'wpm_show_admin_notice', true, $notice ); -
wpm_site_options_config
filterapply_filters( 'wpm_site_options_config', $config['site_options'] ); -
wpm_taxonomies_config
filterapply_filters( 'wpm_taxonomies_config', (array) $config['taxonomies'] ); -
apply_filters( "wpm_taxonomy_{$taxonomy}_config", isset( $taxonomies_config[ $taxonomy ] ) ? $taxonomies_config[ $taxonomy ] : null ); -
wpm_translate_url
filterapply_filters( 'wpm_translate_url', $new_url, $language, $url ); -
wpm_untranslated_text
filterapply_filters( 'wpm_untranslated_text', $strings[ $default_language ], $strings, $language ); -
apply_filters( "wpm_update_{$meta_key}_meta_value", $meta_value ); -
wpm_update_{$option}_option
filterapply_filters( "wpm_update_{$option}_option", $value, $original_value, $option, $old_value ); -
apply_filters( "wpm_update_{$this->object_type}_meta_{$meta_key}_value", $meta_value ); -
wpm_update_meta_value
filterapply_filters( 'wpm_update_meta_value', $meta_value, $meta_key ); -
wpm_update_options
actiondo_action( 'wpm_update_options' ); -
do_action( "wpm_update_options_{$current_tab}" ); -
do_action( "wpm_update_options_{$this->id}_{$current_section}" ); -
wpm_updated
actiondo_action( 'wpm_updated' ); -
wpm_widget_{$widget}_config
filterapply_filters( "wpm_widget_{$widget}_config", array_key_exists( $widget, $widgets_config ) ? $widgets_config[ $widget ] : array() ); -
do_action( "wpm_widget_field_{$setting['type']}", $key, $value, $setting, $instance ); -
wpm_widgets_config
filterapply_filters( 'wpm_widgets_config', $config['widgets'] ); -
wpm_xliff_postmeta_keys
filterapply_filters( 'wpm_xliff_postmeta_keys', [], $post ); -
apply_filters( 'wpmpro_auto_translate_content', $string, $source, $target ); -
do_action( 'wpmpro_autotranslate_enqueue_script', $main_params ); -
wpmpro_load_core_configs
filterapply_filters( 'wpmpro_load_core_configs', self::$config_files, self::$active_plugins );
Generated from WP Multilang's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: