Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
render_stylesheet example
if
(
!
$this
->
sitemaps_enabled
(
)
)
{
$wp_query
->
set_404
(
)
;
status_header
(
404
)
;
return
;
}
// Render stylesheet if this is stylesheet route.
if
(
$stylesheet_type
)
{
$stylesheet
=
new
WP_Sitemaps_Stylesheet
(
)
;
$stylesheet
->
render_stylesheet
(
$stylesheet_type
)
;
exit
;
}
// Render the index.
if
(
'index' ===
$sitemap
)
{
$sitemap_list
=
$this
->index->
get_sitemap_list
(
)
;
$this
->renderer->
render_index
(
$sitemap_list
)
;
exit
;
}