is_rtl()
Determines whether the current locale is right-to-left (RTL).
Description #Description
For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.
Return #Return
(bool) Whether locale is RTL.
Source #Source
File: wp-includes/l10n.php
function is_rtl() { global $wp_locale; if ( ! ( $wp_locale instanceof WP_Locale ) ) { return false; } return $wp_locale->is_rtl(); }
Expand full source code Collapse full source code View on Trac
Changelog #Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
Related #Related
Uses #Uses
Uses | Description |
---|---|
wp-includes/class-wp-locale.php: WP_Locale::is_rtl() |
Checks if current locale is RTL. |
Used By #Used By
Used By | Description |
---|---|
wp-includes/functions.php: _wp_die_process_input() |
Processes arguments passed to wp_die() consistently for its handlers. |
wp-includes/class-wp-editor.php: _WP_Editors::print_default_editor_scripts() |
Print (output) all editor scripts and default settings. |
wp-includes/customize/class-wp-customize-site-icon-control.php: WP_Customize_Site_Icon_Control::content_template() |
Renders a JS template for the content of the site icon control. |
wp-includes/general-template.php: get_language_attributes() |
Gets the language attributes for the html tag. |
wp-login.php: login_header() |
Output the login page header. |
wp-admin/install.php: display_header() |
Display installation header. |
wp-admin/includes/template.php: iframe_header() |
Generic Iframe header for use with Thickbox |
wp-admin/includes/media.php: wp_iframe() |
Outputs the iframe to display the media upload page. |
wp-includes/theme.php: add_editor_style() |
Add callback for custom TinyMCE editor stylesheets. |
wp-includes/general-template.php: register_admin_color_schemes() |
Registers the default admin color schemes. |
wp-includes/general-template.php: wp_admin_css() |
Enqueues or directly prints a stylesheet link to the specified CSS file. |
wp-includes/general-template.php: get_bloginfo() |
Retrieves information about the current site. |
wp-includes/functions.php: _mce_set_direction() |
Set the localized direction for MCE plugin. |
wp-includes/post-template.php: get_body_class() |
Retrieves an array of the class names for the body element. |
wp-includes/media.php: gallery_shortcode() |
Builds the Gallery shortcode output. |
wp-includes/script-loader.php: wp_default_styles() |
Assign default styles to $styles object. |
wp-includes/class-wp-editor.php: _WP_Editors::wp_mce_translation() |
Translates the default TinyMCE strings and returns them as JSON encoded object ready to be loaded with tinymce.addI18n(), or as JS snippet that should run after tinymce.js is loaded. |
wp-includes/media-template.php: wp_print_media_templates() |
Prints the templates used in the media manager. |
User Contributed Notes #User Contributed Notes
You must log in before being able to contribute a note or feedback.
Basic Example