WP HOOKS
filtrdynamicznyod 3.1.0

bulk_actions-{$this->screen->id}

Args 1Plik wp-admin/includes/class-wp-list-table.php

Opis — z kodu źródłowego

Filters the items in the bulk actions menu of the list table.

The dynamic portion of the hook name, $this->screen->id, refers to the ID of the current screen.

Parametry

ParametrTypOpis
$actionsarrayAn array of the available bulk actions.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'bulk_actions-{$this->screen->id}', 'twoja_funkcja' );

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

Popularne w tej kategorii