akcjaod 5.8.0
rest_save_sidebar
Opis — z kodu źródłowego
Fires after a sidebar is updated via the REST API.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$sidebar | array | The updated sidebar. |
$request | \WP_REST_Request | Request object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'rest_save_sidebar', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'rest_save_sidebar', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii