wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
_mce_set_direction is private and should not be used in themes or plugins directly.
_mce_set_direction › WordPress Function
Desde2.1.0
Obsoleton/a
› _mce_set_direction ( $mce_init )
Acesso: |
|
Parâmetros: |
|
Retorna: |
|
Definido em: |
|
Codex: |
Sets the localized direction for MCE plugin.
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.Funções relacionadas: get_stylesheet_directory, wp_image_src_get_dimensions, wp_safe_redirect, do_settings_sections, add_settings_section
Fonte
function _mce_set_direction( $mce_init ) { if ( is_rtl() ) { $mce_init['directionality'] = 'rtl'; $mce_init['rtl_ui'] = true; if ( ! empty( $mce_init['plugins'] ) && ! str_contains( $mce_init['plugins'], 'directionality' ) ) { $mce_init['plugins'] .= ',directionality'; } if ( ! empty( $mce_init['toolbar1'] ) && ! preg_match( '/\bltr\b/', $mce_init['toolbar1'] ) ) { $mce_init['toolbar1'] .= ',ltr'; } } return $mce_init; }