[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/sitemaps/ -> class-wp-sitemaps.php (summary)

Sitemaps: WP_Sitemaps class This is the main class integrating all other classes.

File Size: 263 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Sitemaps:: (8 methods):
  __construct()
  init()
  sitemaps_enabled()
  register_sitemaps()
  register_rewrites()
  render_sitemaps()
  redirect_sitemapxml()
  add_robots()


Class: WP_Sitemaps  - X-Ref

Class WP_Sitemaps.

__construct()   X-Ref
WP_Sitemaps constructor.

since: 5.5.0

init()   X-Ref
Initiates all sitemap functionality.

If sitemaps are disabled, only the rewrite rules will be registered
by this method, in order to properly send 404s.

since: 5.5.0

sitemaps_enabled()   X-Ref
Determines whether sitemaps are enabled or not.

return: bool Whether sitemaps are enabled.
since: 5.5.0

register_sitemaps()   X-Ref
Registers and sets up the functionality for all supported sitemaps.

since: 5.5.0

register_rewrites()   X-Ref
Registers sitemap rewrite tags and routing rules.

since: 5.5.0

render_sitemaps()   X-Ref
Renders sitemap templates based on rewrite rules.

since: 5.5.0

redirect_sitemapxml( $bypass, $query )   X-Ref
Redirects a URL to the wp-sitemap.xml

param: bool     $bypass Pass-through of the pre_handle_404 filter value.
param: WP_Query $query  The WP_Query object.
return: bool Bypass value.
since: 5.5.0

add_robots( $output, $public )   X-Ref
Adds the sitemap index to robots.txt.

param: string $output robots.txt output.
param: bool   $public Whether the site is public.
return: string The robots.txt output.
since: 5.5.0



Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1