Site icon Hip-Hop Website Design and Development

register_sidebar operate drawback

What’s flawed on this operate?

operate init(){
    //undergo every sidebar and register it
    $sidebars = sidebar_generator::get_sidebars();


    if(is_array($sidebars)){
        foreach($sidebars as $sidebar){
            $sidebar_class = sidebar_generator::name_to_class($sidebar);
            register_sidebar(array(
                'identify'=>$sidebar,
                'id' => 'new-sidebars',
                'before_widget' => '<div class="sb_widget">',
                'after_widget' => '</div>',
                'before_title' => '<h4>',
                'after_title' => '</h4>',
            ));
        }
    }
}

right here is the log:

Discover: register_sidebar was referred to as incorrectly. No id was set within the arguments array for the “Sidebar” sidebar. Defaulting to “sidebar-1”. Manually set the id to “sidebar-1” to silence this discover and preserve current sidebar content material. Please see Debugging in WordPress for extra info. (This message was added in model 4.2.0.) in /house/incentiv/public_html/wp-includes/features.php on line 4147

Discover: register_sidebar was referred to as incorrectly. No id was set within the arguments array for the “Footer” sidebar. Defaulting to “sidebar-2”. Manually set the id to “sidebar-2” to silence this discover and preserve current sidebar content material. Please see Debugging in WordPress for extra info. (This message was added in model 4.2.0.) in /house/incentiv/public_html/wp-includes/features.php on line 4147

Discover: register_sidebar was referred to as incorrectly. No id was set within the arguments array for the “Contact Prime” sidebar. Defaulting to “sidebar-3”. Manually set the id to “sidebar-3” to silence this discover and preserve current sidebar content material. Please see Debugging in WordPress for extra info. (This message was added in model 4.2.0.) in /house/incentiv/public_html/wp-includes/features.php on line 4147