Languages: English • Function Reference/is rtl 日本語 (Add your language)
Checks if current locale is RTL (Right To Left script).
<?php is_rtl() ?>
This tag does not accept any parameters.
if ( is_rtl() ) { wp_enqueue_style( 'style-rtl', plugins_url('/css/style-rtl.css', __FILE__) ); wp_enqueue_script( 'script-rtl', plugins_url('/js/script-rtl.js', __FILE__) ); }
is_rtl() is located in wp-includes/locale.php
.