WPML
wpml_must_translate_canonical_url
WPML Version
4.1.0

Description

This filter can block WPML from translating the canonical URL. If the filter returns false WPML will use the WP SEO canonical URL.

Example usage

$should_translate_canonical_url = apply_filters( 'wpml_must_translate_canonical_url', true, $post_element );
if ( ! $should_translate_canonical_url ) {
	return $canonical_url;
}

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

All 29 Site-Wide Language Information hooks →