WP_List_Table::get_pagination_arg
Access the pagination args.
Метод класса: WP_List_Table{}
Хуков нет.
Возвращает
int. Number of items that correspond to the given pagination argument.
Использование
$WP_List_Table = new WP_List_Table(); $WP_List_Table->get_pagination_arg( $key );
- $key(строка) (обязательный)
- Pagination argument to retrieve. Common values include
'total_items','total_pages','per_page', or'infinite_scroll'.
Список изменений
| С версии 3.1.0 | Введена. |
Код WP_List_Table::get_pagination_arg() WP List Table::get pagination arg WP 7.0
public function get_pagination_arg( $key ) {
if ( 'page' === $key ) {
return $this->get_pagenum();
}
return $this->_pagination_args[ $key ] ?? 0;
}