Transleti Translator 1.9.56 has 9 actions and 33 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 Transleti Translator fires an action
add_action( 'transleti_translation_ready', function( $url, $ID, $lang_locale ) {
// Your code runs here.
}, 10, 3 );
// Change a value Transleti Translator is about to use
add_filter( 'transleti_connector_mode_enabled', 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
-
/** * Filter: force-enable connector mode. */ apply_filters( 'transleti_connector_mode_enabled', false ); -
/** * Filter: post types that hold user-built forms. */ apply_filters( 'transleti_form_post_types', array_values( self::form_shortcode_map() ) ); -
/** * Filter: form shortcodes to remap to the current language. */ apply_filters( 'transleti_form_shortcodes', [ 'sureforms' => 'sureforms_form', 'wpforms' => 'wpforms', 'contact-form-7' => 'wpcf7_contact_form', 'forminator_form' => 'forminator_forms', 'everest_form' => 'everest_form', ] ); -
/** * Filter: return false to skip the switcher flag webfont. */ apply_filters( 'transleti_load_flag_font', $enabled ); -
/** * Filter: return false to disable webfont loading entirely. */ apply_filters( 'transleti_load_webfonts', $enabled, $locale ); -
/** * Filter: extend or override the regional dictionary. */ apply_filters( 'transleti_regional_dictionary', $raw, $locale ); -
/** * Filter: meta-key suffixes that mark a value as reader-facing text. */ apply_filters( 'transleti_text_meta_suffixes', [ '_text', '_message', '_msg', '_label', '_placeholder', '_heading', ] ); -
/** * Filter taxonomies the term translator operates on. */ apply_filters( 'transleti_translated_taxonomies', self::DEFAULT_TAXONOMIES ); -
/** * Filter: extend or override the forced-translation glossary. */ apply_filters( 'transleti_translation_glossary', $glossary, $target_iso ); -
/** * Fires when a URL finishes translating, for any other cache layer. */ do_action( 'transleti_translation_ready', $url, $post->ID, $lang_locale ); -
/** * Filter: extend or override the whole-string UI glossary. */ apply_filters( 'transleti_ui_glossary', $map[ $target_iso ] ?? [], $target_iso ); -
/** * Filter: override the CSS font-family name for this locale. */ apply_filters( 'transleti_webfont', $name, $locale ); -
apply_filters( 'wpml_object_id', $orig, $cpt, true ); -
apply_filters( 'transleti_protected_post_types', array('hp_listing', 'product', 'post', 'page') ); -
do_action( 'wpml_switch_language', $src_lang ); -
apply_filters( 'wpml_default_language', null ); -
apply_filters( 'wpml_active_languages', null, array( 'skip_missing' => 0 ) ); -
apply_filters( 'wpml_element_language_code', null, [ 'element_id' => $sid, 'element_type' => get_post_type( $sid ) ] ); -
apply_filters( 'wpml_current_language', null ); -
apply_filters( 'wpml_element_trid', null, $front_id, 'post_' . get_post_type( $front_id ) ); -
do_action( 'litespeed_control_set_nocache', 'transleti crawl' ); -
apply_filters( 'the_content', $content ); -
apply_filters( 'transleti_language_names', array( 'en_US' => 'English', 'en_GB' => 'English', 'en_AU' => 'English', 'en_CA' => 'English', 'en_IE' => 'English', 'en_NZ' => 'English', 'en_SG' => 'English', 'es_ES' => 'Español', 'es_MX' => 'Español', 'pt_PT' => 'Português', 'pt_BR' => 'Português', 'fr_FR' => 'Français', 'fr_CA' => 'Français', 'de_DE' => 'Deutsch', 'de_AT' => 'Deutsch', 'it_IT' => 'Italiano', 'nl_NL' => 'Nederlands', ... ); -
apply_filters( 'transleti_pending_page_translations', array( 'en' => array( 'title' => 'Page Not Yet Available', 'message' => 'This page is not available in this language yet, but it will be available shortly.', 'btn_home' => 'Go to Homepage', 'btn_original' => 'View in %s', ), 'es' => array( 'title' => 'Página aún no disponible', 'message' => 'Esta página aún no está disponible en este idioma, pero estará disponible en breve.', 'btn_home' =... ); -
apply_filters( 'trp_hreflang', $tag, $lang ); -
do_action( 'wp_rocket_no_cache' ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'litespeed_purge_post', $post->ID ); -
apply_filters( 'transleti_auto_slug_post_types', get_post_types(array('public' => true), 'names') ); -
apply_filters( 'transleti_crawl_timeout', 30 ); -
apply_filters( 'transleti_images_per_page', 10 ); -
apply_filters( 'transleti_max_parallel_requests', self::MAX_PARALLEL ); -
apply_filters( 'transleti_max_render_translations', 0 ); -
apply_filters( 'transleti_skip_crawl_post', $this->is_child_product($pid), $pid ); -
apply_filters( 'transleti_wpml_auto_translate_types', $types ); -
apply_filters( 'wpml_home_url', home_url('/') ); -
apply_filters( 'wpml_is_translated_post_type', null, $type ); -
do_action( 'wpml_pb_register_all_strings_for_translation', $post ); -
do_action( 'wpml_set_element_language_details', array( 'element_id' => $translated_id, 'element_type' => 'post_' . $post_type, 'trid' => $trid, 'language_code' => $language_code, 'source_language_code' => $source_lang, ) ); -
do_action( 'wpml_st_translation_files_process_queue' );
Generated from Transleti Translator'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: