wpml_must_translate_canonical_url
- カテゴリー
- サイト全体の言語情報
- WPMLバージョン
- 4.1.0
説明
このフィルターは、WPMLによるカノニカルURLの翻訳をブロックできます。フィルターがfalseを返す場合、WPMLはWP SEOのカノニカルURLを使用します。
使用例
$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