Switch language

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




remove_editor_styles [ WordPress Function ]

remove_editor_styles ( No parameters )
Returns:
  • (bool) True on success, false if there were no stylesheets to remove.
Defined at:



Removes all visual editor stylesheets.

Source


<?php
function remove_editor_styles() {
    if ( ! 
current_theme_supports'editor-style' ) )
        return 
false;
    
_remove_theme_support'editor-style' );
    if ( 
is_admin() )
        
$GLOBALS['editor_styles'] = array();
    return 
true;
}
?>

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