MultilingualPress 2.11.3 has 33 actions and 50 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 MultilingualPress fires an action
add_action( 'mlp_after_post_synchronization', function( $save_context ) {
// Your code runs here.
}, 10, 1 );
// Change a value MultilingualPress is about to use
add_filter( 'mlp_allowed_post_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
-
/** * Runs after all save_post actions have been called for the remote blogs. */ do_action( 'mlp_after_post_synchronization', $this->save_context ); -
/** * This filter is documented in inc/post-translator/Mlp_Translation_Metabox.php */ apply_filters( 'mlp_allowed_post_types', array( 'post', 'page' ) ); -
/** * Runs before the first save_post action is called for the remote blogs. */ do_action( 'mlp_before_post_synchronization', $this->save_context ); -
/** * This filter is documented in inc/types/Mlp_Translation.php */ apply_filters( 'mlp_linked_element_link', $url, $site_id, 0, $translation ); -
/** * Filter the new post data before inserting the post into the database. */ apply_filters( 'mlp_pre_insert_post', $new_post_data, $this->save_context ); -
/** * Filter the post data before saving the post. */ apply_filters( 'mlp_pre_save_post', $new_post_data, $this->save_context ); -
/** * Filters if the hreflang links should be rendered. */ apply_filters( 'multilingualpress.render_hreflang', count( $translations ) > 1, $translations ); -
/** * This action is documented in wp-admin/includes/plugin.php */ do_action( "activate_{$plugin}", false ); -
/** * This action is documented in wp-admin/includes/plugin.php */ do_action( 'activate_plugin', $plugin, false ); -
/** * This action is documented in wp-admin/includes/plugin.php */ do_action( 'activated_plugin', $plugin, false ); -
/** * This filter is documented in wp-admin/edit-form-advanced.php */ apply_filters( 'enter_title_here', $placeholder, $post ); -
/** * Runs before internal actions are registered. */ do_action( 'inpsyde_mlp_init', $this->plugin_data, $this->wpdb ); -
/** * Runs after internal actions have been registered. */ do_action( 'inpsyde_mlp_loaded', $this->plugin_data, $this->wpdb ); -
/** * Fires at the end of but still inside the MultilingualPress table on the Add * New Site admin page. */ do_action( 'mlp_after_new_blog_fields' ); -
/** * Runs after the terms have been changed. */ do_action( 'mlp_after_term_synchronization', $term_taxonomy_id, $taxonomy, $current_filter, $success ); -
/** * Late loading event for MultilingualPress. */ do_action( 'mlp_and_wp_loaded', $this->plugin_data, $this->wpdb ); -
/** * Runs before the terms are changed. */ do_action( 'mlp_before_term_synchronization', $term_taxonomy_id, $taxonomy, $current_filter ); -
/** * Runs at the end of but still inside the site settings table. */ do_action( 'mlp_blogs_add_fields', $this->blog_id ); -
/** * Runs after having saved the site settings. */ do_action( 'mlp_blogs_save_fields', $_POST ); -
/** * Filters the capability required to view the dashboard widget. */ apply_filters( 'mlp_dashboard_widget_access', 'edit_others_posts' ); -
/** * Filter the default value for the search engine visibility when adding a new * site. */ apply_filters( 'mlp_default_search_engine_visibility', false ); -
/** * Filters if the current request should be redirected. */ apply_filters( 'mlp_do_redirect', true ); -
/** * Filter the visibility of the module in the features table. */ apply_filters( "mlp_dont_show_module_{$slug}", false ); -
/** * Runs after successful blog duplication. */ do_action( 'mlp_duplicated_blog', $context ); -
/** * Filter whether to use an external save method instead of the built-in * method. */ apply_filters( 'mlp_external_save_method', false ); -
/** * Filter the translation arguments. */ apply_filters( 'mlp_get_translations_arguments', $arguments ); -
/** * Filters the output of the hreflang links in the HTML head. */ apply_filters( 'mlp_hreflang_html', $html, $lang, $url ); -
/** * Filters the output of the hreflang links in the HTTP header. */ apply_filters( 'mlp_hreflang_http_header', $header, $lang, $url ); -
/** * Get the Language API object. */ apply_filters( 'mlp_language_api', null ); -
/** * Filters the output of the linked elements. */ apply_filters( 'mlp_linked_elements_html', $output, $items, $params ); -
/** * Runs after the features table. */ do_action( 'mlp_modules_add_fields' ); -
/** * Runs at the end of but still inside the features table. */ do_action( 'mlp_modules_add_fields_to_table' ); -
/** * Runs before the redirect. */ do_action( 'mlp_modules_save_fields', $_POST ); -
/** * Filter mutually exclusive taxonomies. */ apply_filters( 'mlp_mutually_exclusive_taxonomies', array( 'post_format' ) ); -
/** * Filter the post translator activation checkbox callback. */ apply_filters( 'mlp_post_translator_activation_checkbox', $callback ); -
/** * Runs before internal actions are registered. */ do_action( 'mlp_post_translator_init', $translator_init_args ); -
/** * Filter post meta data before saving. */ apply_filters( 'mlp_pre_insert_post_meta', $post_meta, $this->save_context ); -
/** * Filter the to-be-synchronized post meta fields. */ apply_filters( 'mlp_pre_save_post_meta', array(), $this->save_context ); -
/** * Filters a post's content for a remote site. */ apply_filters( 'mlp_process_post_content_for_remote_site', $content, $current_site_id, $current_post_id, $remote_site_id ); -
/** * Filters a post's data for a remote site. */ apply_filters( 'mlp_process_post_data_for_remote_site', array( 'siteID' => $remote_site_id, 'title' => $title, 'slug' => $slug, 'tinyMCEContent' => $tmce_content, 'content' => $content, 'excerpt' => $excerpt, ), $current_site_id, $current_post_id, $remote_site_id ); -
/** * Filters a post's excerpt for a remote site. */ apply_filters( 'mlp_process_post_excerpt_for_remote_site', $excerpt, $current_site_id, $current_post_id, $remote_site_id ); -
/** * Filters a post's slug for a remote site. */ apply_filters( 'mlp_process_post_slug_for_remote_site', $slug, $current_site_id, $current_post_id, $remote_site_id ); -
/** * Filters a post's title for a remote site. */ apply_filters( 'mlp_process_post_title_for_remote_site', $title, $current_site_id, $current_post_id, $remote_site_id ); -
/** * Filters a post's TinyMCE content for a remote site. */ apply_filters( 'mlp_process_post_tmce_content_for_remote_site', $tmce_content, $current_site_id, $current_post_id, $remote_site_id ); -
/** * Filters the quicklinks HTML. */ apply_filters( 'mlp_quicklinks_html', $html, $type, $translated, $selections, $position ); -
/** * Filters the redirect URL. */ apply_filters( 'mlp_redirect_url', $target['url'], $target, $current_site_id ); -
/** * Filters the minimum number of characters required to fire the remote post * search. */ apply_filters( 'mlp_remote_post_search_threshold', 3 ); -
/** * Runs after having reset the database table. */ do_action( 'mlp_reset_table_done', $table_schema ); -
/** * Filters the visibility of the 'Translation completed' checkbox. */ apply_filters( 'mlp_show_translation_completed_checkbox', true, array( 'post_id' => $post_id, 'is_translated' => $is_translated, ) ); -
/** * Filter the to-be-duplicated tables. */ apply_filters( 'mlp_tables_to_duplicate', $tables, $context ); -
/** * Filter the default value of the 'Translate this post' checkbox. */ apply_filters( 'mlp_translate_this_post_checkbox', false ); -
/** * Runs before the main content of the meta box. */ do_action( 'mlp_translation_meta_box_bottom', $post, $data->remote_blog_id, $data->remote_post ); -
/** * Runs before the main content of the meta box. */ do_action( "mlp_translation_meta_box_bottom_{$data->remote_blog_id}", $post, $data->remote_blog_id, $data->remote_post ); -
/** * Runs with the main content of the meta box. */ do_action( 'mlp_translation_meta_box_main', $post, $data->remote_blog_id, $data->remote_post ); -
/** * Runs with the main content of the meta box. */ do_action( "mlp_translation_meta_box_main_{$data->remote_blog_id}", $post, $data->remote_blog_id, $data->remote_post ); -
/** * Runs after registration of the meta box for the given blog's language. */ do_action( 'mlp_translation_meta_box_registered', $post, $blog_id ); -
/** * Runs before the main content of the meta box. */ do_action( 'mlp_translation_meta_box_top', $post, $data->remote_blog_id, $data->remote_post ); -
/** * Runs before the main content of the meta box. */ do_action( "mlp_translation_meta_box_top_{$data->remote_blog_id}", $post, $data->remote_blog_id, $data->remote_post ); -
/** * Filter the meta box view callbacks. */ apply_filters( 'mlp_translation_meta_box_view_callbacks', $callbacks, $post, $blog_id ); -
/** * Filter the translations before they are used. */ apply_filters( 'mlp_translations', $translations, $arguments ); -
/** * Filters the allowed taxonomies. */ apply_filters( 'multilingualpress.active_taxonomies', get_object_taxonomies( $post_types ) ); -
/** * Filters if the system check should be forced regardless of the context. */ apply_filters( 'multilingualpress.force_system_check', false ); -
/** * Filters the allowed status for posts to be included in hreflang links. */ apply_filters( 'multilingualpress.hreflang_post_status', array( 'publish', ) ); -
/** * Filters the available translations to be used for hreflang links. */ apply_filters( 'multilingualpress.hreflang_translations', $this->translations ); -
/** * Filters the output type for the hreflang links. */ apply_filters( 'multilingualpress.hreflang_type', $hreflang_type ); -
/** * Filters the factor used to compute the priority of language-only matches. * This has to be between 0 and 1. */ apply_filters( 'multilingualpress.language_only_priority_factor', .8 ); -
/** * Filters the lifetime, in seconds, for data in the noredirect storage. */ apply_filters( 'multilingualpress.noredirect_storage_lifetime', 5 * MINUTE_IN_SECONDS ); -
/** * Filters the update interval, in seconds, for the timestamp of noredirect * storage data. */ apply_filters( 'multilingualpress.noredirect_update_interval', MINUTE_IN_SECONDS ); -
/** * Filters whether or not to use nofollow quicklinks. */ apply_filters( 'multilingualpress.quicklinks_nofollow', false ); -
/** * Filters the allowed status for posts to be included as possible redirect * targets. */ apply_filters( 'multilingualpress.redirect_post_status', array( 'publish', ) ); -
/** * Filters the possible redirect target objects. */ apply_filters( 'multilingualpress.redirect_targets', $targets, $translations ); -
/** * Filters the redirector type. */ apply_filters( 'multilingualpress.redirector_type', 'PHP' ); -
/** * Filters the query arguments for the remote post search. */ apply_filters( 'multilingualpress.remote_post_search_arguments', $args ); -
/** * This action is documented in wp-includes/theme.php */ do_action( 'switch_theme', $theme->get( 'Name' ), $theme ); -
/** * This filter is documented in wp-includes/default-widgets.php */ apply_filters( 'widget_title', $title ); -
do_action( 'mlp_debug', current_filter() . '/' . __METHOD__ . '/' . __LINE__ . " - {$this->wpdb->last_query}" ); -
do_action( 'mlp_after_link' ); -
do_action( 'mlp_before_link' ); -
do_action( 'mlp_blogs_add_fields_secondary', $this->blog_id ); -
do_action( 'mlp_settings_save_fields' ); -
apply_filters( 'multilingualpress.deleted_tables', ['mlp_languages', 'multilingual_linked', 'mlp_site_relations'] );
Generated from MultilingualPress'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: