WC_Template_Loader::get_current_shop_view_args
Get information about the current shop page view.
Method of the class: WC_Template_Loader{}
No Hooks.
Returns
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() WC Template Loader::get current shop view args code WC 10.5.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(),
);
}