WC_Template_Loader::get_current_shop_view_args()private staticWC 3.3.0

Get information about the current shop page view.

Method of the class: WC_Template_Loader{}

No Hooks.

Return

Array.

Usage

$result = WC_Template_Loader::get_current_shop_view_args();

Changelog

Since 3.3.0 Introduced.

WC_Template_Loader::get_current_shop_view_args() code WC 8.7.0

private static function get_current_shop_view_args() {
	return (object) array(
		'page'    => absint( max( 1, absint( get_query_var( 'paged' ) ) ) ),
		'columns' => wc_get_default_products_per_row(),
		'rows'    => wc_get_default_product_rows_per_page(),
	);
}