filtrod 2.3.0
get_edit_post_link
Opis — z kodu źródłowego
Filters the post edit link.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$link | string | The edit link. |
$post_id | int | Post ID. |
$context | string | The link context. If set to 'display' then ampersands are encoded. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_edit_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_edit_post_link', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii