WP HOOKS
filtrod 2.8.0

page_row_actions

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

Opis — z kodu źródłowego

Filters the array of row action links on the Pages list table.

The filter is evaluated only for hierarchical post types.

Parametry

ParametrTypOpis
$actionsstring[]An array of row action links. Defaults are 'Edit', 'Quick Edit', 'Restore', 'Trash', 'Delete Permanently', 'Preview', and 'View'.
$post\WP_PostThe post object.

Wywołanie

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

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

Popularne w tej kategorii