Astra_Edd::replace_store_sidebar( String $sidebar )
Assign shop sidebar for store page.
Description
Parameters
- $sidebar
-
(String) (Required) Sidebar.
Return
(String) $sidebar Sidebar.
Source
File: inc/compatibility/edd/class-astra-edd.php
public function replace_store_sidebar( $sidebar ) { $is_edd_page = astra_is_edd_page(); $is_edd_single_product_page = astra_is_edd_single_product_page(); if ( $is_edd_page && ! $is_edd_single_product_page ) { $sidebar = 'astra-edd-sidebar'; } elseif ( $is_edd_single_product_page ) { $sidebar = 'astra-edd-single-product-sidebar'; } return $sidebar; }
Expand full source code Collapse full source code View on Trac