[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

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.


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.


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

return: bool Whether sitemaps are enabled.

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


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


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


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

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

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

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



Generated : Mon Oct 26 08:20:01 2020 Cross-referenced by PHPXref