filtrod 5.4.0
add_trashed_suffix_to_trashed_posts
Opis — z kodu źródłowego
Filters whether or not to add a `__trashed` suffix to trashed posts that match the name of the updated post.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$add_trashed_suffix | bool | Whether to attempt to add the suffix. |
$post_name | string | The name of the post being updated. |
$post_id | int | Post ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'add_trashed_suffix_to_trashed_posts', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'add_trashed_suffix_to_trashed_posts', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii