WPSEO_Sitemaps::set_n
Set the sitemap current page to allow creating partial sitemaps with WP-CLI in a one-off process.
Метод класса: WPSEO_Sitemaps{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WPSEO_Sitemaps = new WPSEO_Sitemaps(); $WPSEO_Sitemaps->set_n( $current_page );
- $current_page(int) (обязательный)
- The part that should be generated.
Код WPSEO_Sitemaps::set_n() WPSEO Sitemaps::set n Yoast 27.4
public function set_n( $current_page ) {
if ( is_scalar( $current_page ) && (int) $current_page > 0 ) {
$this->current_page = (int) $current_page;
}
}