WP HOOKS
filtrod 4.4.0

content_pagination

Args 2Plik wp-includes/class-wp-query.phpDokumentacja WP ↗

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

ParametrTypOpis
$pagesstring[]Array of "pages" from the post content split by <code>&lt;!-- nextpage --&gt;</code> tags.
$post\WP_PostCurrent 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
}

Popularne w tej kategorii