WPSEO_Sitemaps::xsl_output
Spits out the XSL for XML sitemaps registered through register_xsl().
The main XML sitemap is styled with CSS, see css_output().
Метод класса: WPSEO_Sitemaps{}
Хуки из метода
Возвращает
void. Ничего (null).
Использование
$WPSEO_Sitemaps = new WPSEO_Sitemaps(); $WPSEO_Sitemaps->xsl_output( $type );
- $type(строка) (обязательный)
- Type to output.
Список изменений
| С версии 1.4.13 | Введена. |
Код WPSEO_Sitemaps::xsl_output() WPSEO Sitemaps::xsl output Yoast 28.9
public function xsl_output( $type ) {
if ( $type !== 'main' ) {
/**
* Fires for the output of XSL for XML sitemaps, other than type "main".
*/
do_action( 'wpseo_xsl_' . $type );
return;
}
if ( ! headers_sent() ) {
header( $this->http_protocol . ' 404 Not Found', true, 404 );
}
}