restrict_manage_posts

Advertisement

Summery Summery

Fires before the Filter button on the Posts and Pages list tables.

Syntax Syntax

do_action( 'restrict_manage_posts', string $post_type, string $which )

Description Description

The Filter button allows sorting by date and/or category on the Posts list table, and sorting by date on the Pages list table.

Parameters Parameters

$post_type

(string) The post type slug.

$which

(string) The location of the extra table nav markup: 'top' or 'bottom' for WP_Posts_List_Table, 'bar' for WP_Media_List_Table.

Source Source

File: wp-admin/includes/class-wp-posts-list-table.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.6.0 The $which parameter was added.
4.4.0 The $post_type parameter was added.
2.1.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.