is_rtl()
Checks if current locale is RTL.
Return
(bool) Whether locale is RTL.
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();
}
Related
Uses
Uses | Description |
---|---|
wp-includes/class-wp-locale.php: WP_Locale::is_rtl() |
Checks if current locale is RTL. |
Used By
Used By | Description |
---|---|
wp-login.php: login_header() |
Output the login page header. |
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-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/script-loader.php: wp_default_styles() |
Assign default styles to $styles object. |
wp-includes/media.php: gallery_shortcode() |
Builds the Gallery shortcode output. |
wp-includes/media-template.php: wp_print_media_templates() |
Prints the templates used in the media manager. |
wp-includes/theme.php: add_editor_style() |
Add callback for custom TinyMCE editor stylesheets. |
wp-includes/post-template.php: get_body_class() |
Retrieve the classes for the body element as an array. |
wp-includes/class-wp-editor.php: _WP_Editors::print_default_editor_scripts() |
Print (output) all editor scripts and default settings. |
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/load.php: wp_maintenance() |
Die with a maintenance message when conditions are met. |
wp-includes/functions.php: dead_db() |
Load custom DB error or display ClassicPress DB error. |
wp-includes/functions.php: _mce_set_direction() |
Set the localized direction for MCE plugin. |
wp-includes/functions.php: _default_wp_die_handler() |
Kills ClassicPress execution and display HTML message with error message. |
wp-admin/includes/media.php: wp_iframe() |
Adds the iframe to display content for the media upload page |
wp-admin/includes/template.php: iframe_header() |
Generic Iframe header for use with Thickbox |
wp-admin/includes/class-wp-internal-pointers.php: WP_Internal_Pointers::pointer_wp496_privacy() |
Display a pointer for the new privacy tools. |
wp-admin/install.php: display_header() |
Display ClassicPress-branded installation header. |
Changelog
Version | Description |
---|---|
WP-3.0.0 | Introduced. |