Switch language

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




wp_maybe_load_widgets [ WordPress Function ]

wp_maybe_load_widgets ( No parameters )
Uses:
Defined at:



Determines if Widgets library should be loaded.

Checks to make sure that the widgets library hasn't already been loaded. If it hasn't, then it will load the widgets library and run an action hook.

Source


<?php
function wp_maybe_load_widgets() {
    if ( ! 
apply_filters('load_default_widgets'true) )
        return;
    require_once( 
ABSPATH WPINC '/default-widgets.php' );
    
add_action'_admin_menu''wp_widgets_add_menu' );
}
?>

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