Skip to content

Instantly share code, notes, and snippets.

@yingles yingles/functions.php
Last active Nov 24, 2015

What would you like to do?
Registering a Sidebar in WordPress
// Function to create widgetized area
function meetup_widgetized_area() {
$args = array(
'name' => __('Meetup Widgetized Area', 'sample-child'),
'id' => 'meetup-widgetized-area',
'description' => 'A sample widegetized area',
'class' => '',
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
// Hook into the widgets_init() function and call our function to register our widgetized area
add_action( 'widgets_init', 'meetup_widgetized_area' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.