WP HOOKS
filtrod 4.3.0

list_table_primary_column

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

Opis — z kodu źródłowego

Filters the name of the primary column for the current list table.

Parametry

ParametrTypOpis
$defaultstringColumn name default for the specific list table, e.g. 'name'.
$contextstringScreen ID for specific list table, e.g. 'plugins'.

Wywołanie

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

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

Popularne w tej kategorii