WP HOOKS
filtrod 3.1.0

network_admin_plugin_action_links

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

Opis — z kodu źródłowego

Filters the action links displayed for each plugin in the Network Admin Plugins list table.

Parametry

ParametrTypOpis
$actionsstring[]An array of plugin action links. By default this can include 'activate', 'deactivate', and 'delete'.
$plugin_filestringPath to the plugin file relative to the plugins directory.
$plugin_dataarrayAn array of plugin data. See get_plugin_data() and the {@see 'plugin_row_meta'} filter for the list of possible values.
$contextstringThe plugin context. By default this can include 'all', 'active', 'inactive', 'recently_activated', 'upgrade', 'mustuse', 'dropins', and 'search'.

Wywołanie

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

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

Popularne w tej kategorii