filtrod 2.9.0
get_delete_post_link
Opis — z kodu źródłowego
Filters the post delete link.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$link | string | The delete link. |
$post_id | int | Post ID. |
$force_delete | bool | Whether to bypass the Trash and force deletion. Default false. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_delete_post_link', '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( 'get_delete_post_link', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii