WC_Shortcode_Products::get_wrapper_classes( int $columns )

Get wrapper classes.


Description Description


Parameters Parameters

$columns

(Required) Number of columns.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/shortcodes/class-wc-shortcode-products.php

	protected function get_wrapper_classes( $columns ) {
		$classes = array( 'woocommerce' );

		if ( 'product' !== $this->type ) {
			$classes[] = 'columns-' . $columns;
		}

		$classes[] = $this->attributes['class'];

		return $classes;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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