filtrod 2.3.0
edit_post_link
Opis — z kodu źródłowego
Filters the post edit link anchor tag.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$link | string | Anchor tag for the edit link. |
$post_id | int | Post ID. |
$text | string | Anchor text. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( '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( 'edit_post_link', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii