filtrod 2.9.0
get_sample_permalink_html
Opis — z kodu źródłowego
Filters the sample permalink HTML markup.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$return | string | Sample permalink HTML markup. |
$post_id | int | Post ID. |
$new_title | string | null | New sample permalink title. |
$new_slug | string | null | New sample permalink slug. |
$post | \WP_Post | Post object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_sample_permalink_html', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_sample_permalink_html', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}Popularne w tej kategorii