filtrod 3.4.0
post_types_to_delete_with_user
Opis — z kodu źródłowego
Filters the list of post types to delete with a user.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$post_types_to_delete | string[] | Array of post types to delete. |
$id | int | User ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'post_types_to_delete_with_user', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'post_types_to_delete_with_user', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii