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.
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() WC Template Loader::get current shop view args code WC 9.7.1
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(), ); }