WPML
apply_filters( 'wpml_is_rtl', mixed $empty_value )
유형
filter
WPML 버전
3.2

설명

현재 언어가 RTL인 경우 TRUE를 반환합니다.

인수

$empty_value
(mixed) (필수) 일반적으로 필터가 수정할 값입니다. 여기서는 아무것도 필터링하지 않으므로 이 값을 NULL로 설정하세요. 이는 필터 함수가 전체 인수 목록을 실제로 수신하도록 하기 위함입니다.

사용 예시

예제
if ( apply_filters( 'wpml_is_rtl', NULL) ) {
    //Link to RTL CSS stylesheet
} else {
    //Link to LTR CSS stylesheet
}

// Alternatively

//Include link to LTR CSS stylesheet here

if ( apply_filters( 'wpml_is_rtl', false ) ) {
    //Link to RTL CSS stylesheet
}

wpml_decode_custom_field, wpml_footer_language_selector, wpml_add_language_form_field, wpml_ls_exclude_in_menu, wpml_alternate_hreflang, wpml_head_langs, wpml_must_translate_canonical_url, wpml_browser_redirect_language_params, wpml_active_languages, wpml_encode_custom_field

모든 사이트 전체 언어 정보 훅 29개 →