WP HOOKS
filtrod 1.5.0

manage_posts_columns

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

Opis — z kodu źródłowego

Filters the columns displayed in the Posts list table.

Parametry

ParametrTypOpis
$posts_columnsstring[]An associative array of column headings.
$post_typestringThe post type slug.

Wywołanie

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

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

Popularne w tej kategorii