Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer
Rendering_Context::get_text_direction
Get the HTML/CSS text direction.
Method of the class: Rendering_Context{}
No Hooks.
Returns
String.
Usage
$Rendering_Context = new Rendering_Context(); $Rendering_Context->get_text_direction(): string;
Rendering_Context::get_text_direction() Rendering Context::get text direction code WC 11.0.0
public function get_text_direction(): string {
return $this->is_rtl() ? 'rtl' : 'ltr';
}