All hooks listed in this API are available for WPML versions >=3.2
No items match your search. Clear the search box or choose a different filter.
Site-Wide Language Information
wpml_decode_custom_fieldfilter – Decode fields that are in a format that WPML does not understandwpml_footer_language_selectoraction – Display WPML's horizontal language switcherwpml_add_language_form_fieldaction – Make a custom search form multilingual-readywpml_ls_exclude_in_menufilter – Allows you to exclude the language switcher from menuwpml_is_rtlfilter – Find out whether the current language text direction is RTL or notwpml_alternate_hreflang– Get the URL to be filtered and the corresponding language code.wpml_head_langs– Get a list of languages as inputwpml_must_translate_canonical_url– Block WPML from translating the canonical URLwpml_browser_redirect_language_paramsfilter – Filters the $params argument which is an associative array that contains information about the current languagewpml_active_languagesfilter – Get a list of the languages enabled for a sitewpml_encode_custom_fieldfilter – Encode fields that are in a format that WPML does not understandwpml_enqueued_browser_redirect_languageaction – Run additional logic after WPML has executed the default one or if the value of $params is customizedwpml_enqueue_browser_redirect_languagefilter – Use a custom JavaScript for handling the browser redirectionwpml_language_switcheraction – Display WPML's language switcherwpml_get_element_translationsfilter – Get the element translations info using “trid” (the ID of the translation group)wpml_element_tridfilter – Get “trid” (the ID of the translation group) of a translated elementwpml_language_has_switchedaction – Run actions when switching the global current language in WordPress queries.wpml_add_language_selectoraction – Display WPML's drop-down language switcherwpml_display_language_namesfilter – Get a language's native and translated name for display in a custom language switcherwpml_auto_translate_string_packagefilter – Control the eligibility for automatic translation on a per-string package basiswpml_active_string_package_kindsfilter – This filter allows declaring an active string package kind.wpml_language_is_activefilter – Find out if a specific language is enabled for the sitewpml_delete_unused_package_stringsaction – This action should be fired when the string package registration is completed.wpml_start_string_package_registrationaction – This action hook should be fired before starting the string package registration.wpml_translated_language_namefilter – Get a language's translated name in another language which you specifywpml_current_languagefilter – Get the current display languagewpml_default_languagefilter – Get the default language enabled for a sitewpml_original_element_idfilter – Returns the ID of the original element when given the element's ID and typewpml_update_active_languagesaction – Run actions when updating the active languages of the site.
Retrieving Language Information for Content
wpml_post_language_detailsfilter – Get the language of a postwpml_switch_language_for_emailaction – Allows you to switch email language to user's preferred languagewpml_restore_language_from_emailaction – Restore the language that was active before calling wpml_switch_language_for_emailwpml_switch_languageaction – Control language in WordPress querieswpml_element_language_codefilter – Get the language code for a translatable elementwpml_element_language_detailsfilter – Get the trid, language code and source language code for a translatable element
Retrieving Localized Content
wpml_media_urlfilter – Convert the media URL to a specific target language or the current languagewpml_media_idfilter – Convert a media ID to the current language or a specified target languageforce_suppress_filtersaction – Override WPML's default language filter for attachments to get all attachments at oncewpml_get_translated_slugfilter – Get the post type slug translation in a specific language.wpml_home_urlfilter – Get a site's home url for the current languagewpml_translate_single_stringfilter – Retrieve a string translationwpml_translate_stringfilter – Retrieve a "package" string translationwpml_elements_without_translationsfilter – Retrieve untranslated elementswpml_permalinkfilter – Add language information to WordPress permalinkswpml_unfiltered_admin_stringfilter – Retrieve an option value by-passing WPML ST filters.wpml_element_linkfilter – Get the url for a post type or taxonomy term for the current languagewpml_object_idfilter – Get the ID in the current language or in another language you specify
Finding the Translation State of Content
wpml_element_translation_typefilter – Find out whether a post type or taxonomy term has been translated or duplicatedwpml_is_translated_post_typefilter – Check whether a post type is set to be translatablewpml_is_translated_taxonomyfilter – Check whether a taxonomy is set to be translatablewpml_master_post_from_duplicatefilter – Get the original post from its duplicated postwpml_post_duplicatesfilter – Get the duplicated posts of another post you specifywpml_element_has_translationsfilter – Find out whether a post type or a taxonomy term is translated
Inserting Content
wpml_set_element_language_detailsaction – Set or update an element's language informationwpml_make_post_duplicatesaction – Create duplicate posts programaticallywpml_admin_make_post_duplicatesaction – Create or update duplicate posts programaticallywpml_copy_post_to_languagefilter – Duplicate a post to another languagewpml_delete_packageaction – Deletes a string translation packagewpml_import_get_trid_from_imported_translationsfilter – Enables imported translations to be connected to existing originals by retrieving the translation record IDwpml_register_stringaction – Register dynamic texts for translationwpml_register_single_stringaction – Register user input texts for translationwpml_show_package_language_uiaction – Display a language information box in the admin UI for contentwpml_delete_package_actionaction – Deletes a string translation package
Miscellaneous
icl_ls_languagesfilter – Filters the displayed languages of the language switcherwpml_sync_custom_field_copied_valuefilter – Filters the post meta values before they are copied to the translation.wpml_ls_enable_ajax_navigationfilter – Updates the language switcher links when a theme or plugin refreshes the page with AJAX.wpml_element_typefilter – Get the WPML element type name for a post type or taxonomy term as saved in the databasewpml_settingfilter – Get the value of a WPML settingwpml_sub_settingfilter – Get the value of a WPML sub settingwpml_exclude_post_from_auto_translatefilter – Exclude post IDs from Automatic Translation.wpml_forms_config_ninja-formsfilter – Filters the Ninja Forms WPML configuration array.wpml_forms_config_wpformsfilter – Filters the WPForms WPML configuration array.wpml_tf_feedback_open_linkaction – Display WPML's translation feedback linkwpml_translatable_user_meta_fieldsfilter – Make certain user meta fields translatable through WPML String Translation.wpml_get_cross_domain_language_datafilter – Retrieve the data passed among language domains.wpml_cross_domain_language_datafilter – Pass data among language domains.wpml_loadedaction – Run actions after WPML is fully configured and loaded.wpml_st_loadedaction – Run actions after WPML String Translation is fully configured and loaded.wpml_tm_loadedaction – Run actions after WPML Translation Management is fully configured and loaded.wpml_hide_management_columnfilter – Allow hiding the translation management column based on post types.wpml_ls_directories_to_scanfilter – Add directories containing language switcher templateswpml_ls_model_language_css_classesfilter – Filter CSS classes for each item in a language switcherwpml_ls_model_css_classesfilter – Filter CSS classes for language switcher wrappers. These wrappers are not available for language switchers in menus.wpml_duplicate_generic_stringfilter – Filter post data upon duplication before savingwpml_sync_custom_fieldaction – Sync custom field value across all translations of a given postwpml_sync_all_custom_fieldsaction – Sync values of all custom fields across all translations of a given postwpml_is_redirectedfilter – Disable WPML canonical URL redirectionwpml_tm_xliff_export_translated_cffilter – Filter translated custom field values before XLIFF exportwpml_post_edit_meta_box_contextfilter – This filter defines where to place the WPML post edit meta box.wpml_tm_save_translation_cffilter – Filter custom fields before saving in WPML's translation editor or XLIFF importwpml_tm_xliff_export_original_cffilter – Filter original custom field values before XLIFF exportwpml_editor_cf_to_displayfilter – Filter custom fields displayed in WPML's translation editorwpml_mail_enabledfilter – Enable or disable emails sent by WPML
Updating Content
wpml_apply_save_attachment_actionsfilter – Allows enabling synchronization actions on attachments.wpml_set_translation_mode_for_post_typeaction – Set a translation mode for a given post type.wpml_st_force_translate_admin_optionsaction – Force translate admin texts