filtrdynamicznyod 2.8.0
{$adjacent}_post_rel_link
Args 1Plik wp-includes/link-template.php
Opis — z kodu źródłowego
Filters the adjacent post relational link.
The dynamic portion of the hook name, $adjacent, refers to the type of adjacency, 'next' or 'previous'.
Possible hook names include:
next_post_rel_linkprevious_post_rel_link
Hook dynamiczny — możliwe nazwy
next_post_rel_linkprevious_post_rel_linkParametry
| Parametr | Typ | Opis |
|---|---|---|
$link | string | The relational link. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( '{$adjacent}_post_rel_link', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( '{$adjacent}_post_rel_link', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii