Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




_mce_set_direction [ WordPress Function ]

_mce_set_direction ( $input )
Access:
  • private
Parameters:
  • (array) $input MCE plugin array.
Returns:
  • (array) Direction set for 'rtl', if needed by locale.
Defined at:



Set 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', 'plugins', and 'theme_advanced_button1' array keys. These keys are then returned in the $input array.

Source


<?php
function _mce_set_direction$input ) {
    if ( 
is_rtl() ) {
        
$input['directionality'] = 'rtl';
        
$input['plugins'] .= ',directionality';
        
$input['theme_advanced_buttons1'] .= ',ltr';
    }

    return 
$input;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics