函数原型
is_rtl(): bool
函数描述
Determines whether the current locale is right-to-left (RTL).
是否弃用
未弃用
函数参数
无
函数返回值
bool Whether locale is RTL.
函数位置
File: wp-includes/l10n.php.
函数源码
function is_rtl() {
global $wp_locale;
if ( ! ( $wp_locale instanceof WP_Locale ) ) {
return false;
}
return $wp_locale->is_rtl();
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |

