Astra_Edd::edd_products_item_class( Array $classes = '' )

Add products item class to the body


Description


Parameters

$classes

(Array) (Optional) product classes.

Default value: ''


Return

(array.)


Source

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

		public function edd_products_item_class( $classes = '' ) {

			$is_edd_archive_page = astra_is_edd_archive_page();

			if ( $is_edd_archive_page ) {
				$shop_grid = astra_get_option( 'edd-archive-grids' );
				$classes[] = 'columns-' . $shop_grid['desktop'];
				$classes[] = 'tablet-columns-' . $shop_grid['tablet'];
				$classes[] = 'mobile-columns-' . $shop_grid['mobile'];

				$classes[] = 'ast-edd-archive-page';
			}

			return $classes;
		}


User Contributed Notes

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