filtrod 4.4.0
content_pagination
Opis — z kodu źródłowego
Filters the "pages" derived from splitting the post content.
"Pages" are determined by splitting the post content based on the presence of <!-- nextpage --> tags.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$pages | string[] | Array of "pages" from the post content split by <code><!-- nextpage --></code> tags. |
$post | \WP_Post | Current post object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'content_pagination', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'content_pagination', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii