restrict_manage_posts
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
do_action( 'restrict_manage_posts', string $post_type, string $which )
Описание
Кнопка «Фильтр» позволяет сортировать по дате и/или рубрике в таблице списка записей и по дате в таблице списка страниц.
Оригинал (английский)
The Filter button allows sorting by date and/or category on the Posts list table, and sorting by date on the Pages list table.
Параметры
$post_type
string
обязательный
$which
string
обязательный
Исходный код
wp-admin/includes/class-wp-posts-list-table.php:593
do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
История изменений
| Версия | Описание |
|---|---|
| 4.6.0 | The $which parameter was added. |
| 4.4.0 | The $post_type parameter was added. |
| 2.1.0 | Introduced. |

