WordPress at Your Fingertips
function is not described

WC_Shortcode_Products::get_wrapper_classes() protected WC 3.2.0

Get wrapper classes.

{} It's a method of the class: WC_Shortcode_Products{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_wrapper_classes( $columns );
$columns(int) (required)
Number of columns.

Changelog

Since 3.2.0 Introduced.

Code of WC_Shortcode_Products::get_wrapper_classes() WC 5.9.0

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

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

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

	return $classes;
}