Create a Function to Create WordPress Widgets

I've taken to the practice of doing something like this whenever I need to create multiple widgets in a theme that all have the same basic parameters. function create_widget($name, $id, $description) { register_sidebar(array( 'name' => __( $name ), 'id' => $id, 'description' => __( $description ), 'before_widget' => ' ', 'after_widget' => ' ', 'before_title' … Continue reading Create a Function to Create WordPress Widgets