WordPress at Your Fingertips
function is not described

WC_Template_Loader::get_current_shop_view_args() private WC 3.3.0

Get information about the current shop page view.

{} It's a 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.

Code of WC_Template_Loader::get_current_shop_view_args() WC 5.6.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(),
	);
}