WP HOOKS
filtrod 4.2.0

disable_months_dropdown

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

Opis — z kodu źródłowego

Filters whether to remove the 'Months' drop-down from the post list table.

Parametry

ParametrTypOpis
$disableboolWhether to disable the drop-down. Default false.
$post_typestringThe post type.

Wywołanie

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

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

Popularne w tej kategorii