WP HOOKS
akcjaod 1.5.0

manage_posts_custom_column

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

Opis — z kodu źródłowego

Fires in each custom column in the Posts list table.

This hook only fires if the current post type is non-hierarchical, such as posts.

Parametry

ParametrTypOpis
$column_namestringThe name of the column to display.
$post_idintThe current post ID.

Wywołanie

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

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

Popularne w tej kategorii