content_pagination хук-фильтр . WP 4.4.0
Filters the "pages" derived from splitting the post content.
"Pages" are determined by splitting the post content based on the presence of <!-- nextpage --> tags.
Использование
add_filter( 'content_pagination', 'filter_function_name_3543', 10, 2 ); function filter_function_name_3543( $pages, $post ){ // filter... return $pages; }
- $pages(строка[])
- Array of "pages" from the post content split by <!-- nextpage --> tags.
- $post(WP_Post)
- Current post object.
Список изменений
С версии 4.4.0 | Введена. |
Где вызывается хук
content_pagination
wp-includes/class-wp-query.php 4384
$pages = apply_filters( 'content_pagination', $pages, $post );