WP HOOKS
akcjadynamicznyod 2.7.0

uninstall_{$file}

Args 0Plik wp-admin/includes/plugin.php

Opis — z kodu źródłowego

Fires in uninstall_plugin() once the plugin has been uninstalled.

The action concatenates the 'uninstall_' prefix with the basename of the plugin passed to uninstall_plugin() to create a dynamically-named action.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'uninstall_{$file}', 'twoja_funkcja' );

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

Popularne w tej kategorii