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 ]

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