Will only set the direction to 'rtl', if the WordPress locale has the text direction set to 'rtl'. Fills in the 'directionality' setting, enables the 'directionality' plugin, and adds the 'ltr' button to 'toolbar1', formerly 'theme_advanced_buttons1' array keys. These keys are then returned in the $mce_init (TinyMCE settings) array.
Parameters
$mce_initarray
MCE settings array.
Return
array
Direction set for 'rtl', if needed by locale.
Uses · 2
is_rtl()Determines whether the current locale is right-to-left (RTL).
str_contains()Polyfill for `str_contains()` function added in PHP 8.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.