WP HOOKS
akcjaod 2.1.0

restrict_manage_posts

Args 2Plik wp-admin/includes/class-wp-posts-list-table.phpDokumentacja WP ↗

Opis — z kodu źródłowego

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

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

Parametry

ParametrTypOpis
$post_typestringThe post type slug.
$whichstringThe location of the extra table nav markup: 'top' or 'bottom' for WP_Posts_List_Table, 'bar' for WP_Media_List_Table.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'restrict_manage_posts', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii