Astra_SureCart::sc_shop_sidebar_layout( string $sidebar_layout )

SureCart Shop Sidebar Layout


Description


Parameters

$sidebar_layout

(string) (Required) Layout type.


Return

(string) $sidebar_layout Layout type.


Source

File: inc/compatibility/surecart/class-astra-surecart.php

	public function sc_shop_sidebar_layout( $sidebar_layout ) {
		if ( $this->astra_is_surecart_shop_page() ) {
			$sc_shop_sidebar = astra_get_option( 'archive-' . $this->post_type . '-sidebar-layout', 'default' );

			if ( 'default' !== $sc_shop_sidebar && ! empty( $sc_shop_sidebar ) ) {
				$sidebar_layout = $sc_shop_sidebar;
			}
		}

		return apply_filters( 'astra_get_surecart_shop_sidebar_layout', $sidebar_layout );
	}

Changelog

Changelog
Version Description
4.4.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.