Yoast\WP\SEO\Schema_Aggregator\Infrastructure
Config::get_big_per_post_type
Gets the per post type for post types with lots of schema nodes.
Метод класса: Config{}
Хуки из метода
Возвращает
int.
Использование
$Config = new Config(); $Config->get_big_per_post_type(): int;
Код Config::get_big_per_post_type() Config::get big per post type Yoast 28.3
public function get_big_per_post_type(): int {
/**
* Filter: 'wpseo_schema_aggregator_per_page_big' Determines the page count for post types with lots of schema nodes.
*
* @param bool $default_count The default amount of posts per page.
*/
$per_page = (int) \apply_filters( 'wpseo_schema_aggregator_per_page_big', self::DEFAULT_PER_PAGE_BIG_SCHEMA );
if ( $per_page > 0 ) {
return $per_page;
}
return self::DEFAULT_PER_PAGE_BIG_SCHEMA;
}