wpml_must_translate_canonical_url
- Version de WPML
- 4.1.0
Description
Ce filtre peut empêcher WPML de traduire l’URL canonique. Si le filtre renvoie false, WPML utilisera l’URL canonique de WP SEO.
Exemple d’utilisation
$should_translate_canonical_url = apply_filters( 'wpml_must_translate_canonical_url', true, $post_element );
if ( ! $should_translate_canonical_url ) {
return $canonical_url;
}
Hooks associés
wpml_decode_custom_field, wpml_footer_language_selector, wpml_add_language_form_field, wpml_ls_exclude_in_menu, wpml_is_rtl, wpml_alternate_hreflang, wpml_head_langs, wpml_browser_redirect_language_params, wpml_active_languages, wpml_encode_custom_field
Les 29 hooks de la catégorie Informations sur les langues à l’échelle du site →