Astra_Edd::store_widgets_init()
Store widgets init.
Description
Source
File: inc/compatibility/edd/class-astra-edd.php
public function store_widgets_init() {
register_sidebar(
apply_filters(
'astra_edd_sidebar_init',
array(
'name' => esc_html__( 'Easy Digital Downloads Sidebar', 'astra' ),
'id' => 'astra-edd-sidebar',
'description' => __( 'This sidebar will be used on Product archive, Cart, Checkout and My Account pages.', 'astra' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
)
)
);
register_sidebar(
apply_filters(
'astra_edd_single_product_sidebar_init',
array(
'name' => esc_html__( 'EDD Single Product Sidebar', 'astra' ),
'id' => 'astra-edd-single-product-sidebar',
'description' => __( 'This sidebar will be used on EDD Single Product page.', 'astra' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
)
)
);
}
Expand full source code Collapse full source code View on Trac