Switch language

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




maybe_disable_automattic_widgets [ WordPress Function ]

maybe_disable_automattic_widgets ( No parameters )
Defined at:



{@internal Missing Short Description}}

{@internal Missing Long Description}}

Source


<?php
function maybe_disable_automattic_widgets() {
    
$plugins __get_option'active_plugins' );

    foreach ( (array) 
$plugins as $plugin ) {
        if ( 
basename$plugin ) == 'widgets.php' ) {
            
array_splice$pluginsarray_search$plugin$plugins ), );
            
update_option'active_plugins'$plugins );
            break;
        }
    }
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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