wpseo_schema_aggregator_per_page_big
Filter: wpseo_schema_aggregator_per_page_big the page count for post types with lots of schema nodes.
Использование
add_filter( 'wpseo_schema_aggregator_per_page_big', 'wp_kama_wpseo_schema_aggregator_per_page_big_filter' );
/**
* Function for `wpseo_schema_aggregator_per_page_big` filter-hook.
*
* @param bool $default_count The default amount of posts per page.
*
* @return bool
*/
function wp_kama_wpseo_schema_aggregator_per_page_big_filter( $default_count ){
// filter...
return $default_count;
}
- $default_count(true|false)
- The default amount of posts per page.
Где вызывается хук
wpseo_schema_aggregator_per_page_big
yoast/src/schema-aggregator/infrastructure/config.php 142
$per_page = (int) \apply_filters( 'wpseo_schema_aggregator_per_page_big', self::DEFAULT_PER_PAGE_BIG_SCHEMA );