WP HOOKS
akcjadynamicznyod 2.8.0

update-custom_{$action}

Args 0Plik wp-admin/update.php

Opis — z kodu źródłowego

Fires when a custom plugin or theme update request is received.

The dynamic portion of the hook name, $action, refers to the action provided in the request for wp-admin/update.php. Can be used to provide custom update functionality for themes and plugins.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'update-custom_{$action}', 'twoja_funkcja' );

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

Popularne w tej kategorii