Skip Navigation
availability:

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.

type:
category:
Site-Wide Language Information
parameters:
hook example usage:
$should_translate_canonical_url = apply_filters( 'wpml_must_translate_canonical_url', true, $post_element );
if ( ! $should_translate_canonical_url ) {
	return $canonical_url;
}