WC_Template_Loader::get_current_shop_view_args
Get information about the current shop page view.
Метод класса: WC_Template_Loader{}
Хуков нет.
Возвращает
Массив.
Использование
$result = WC_Template_Loader::get_current_shop_view_args();
Список изменений
| С версии 3.3.0 | Введена. |
Код WC_Template_Loader::get_current_shop_view_args() WC Template Loader::get current shop view args WC 10.4.2
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(),
);
}