wpseek.com
WordPress开发者和主题制作者的搜索引擎



is_rtl › WordPress Function

Since3.0.0
已弃用n/a
is_rtl ( 没有参数 )
返回:
  • (bool) Whether locale is RTL.
定义在:
文档:

Determines whether the current locale is right-to-left (RTL).

For more information on this and similar theme functions, check out the {@link Conditional Tags} article in the Theme Developer Handbook.


Related Functions: is_tag, is_tax, is_ssl, is_robots, is_date

源码

function is_rtl() {
	global $wp_locale;
	if ( ! ( $wp_locale instanceof WP_Locale ) ) {
		return false;
	}
	return $wp_locale->is_rtl();
}