Core Class
View Source on Trac ↗
Core Class
WP_Sitemaps
class WP_Sitemaps
// Constructor: function Object() { [native code] } Class WP_Sitemaps.
Methods 8 methods
| Method / Return | Description |
|---|---|
| __construct() void | WP_Sitemaps constructor. |
| init() void | Initiates all sitemap functionality. |
| sitemaps_enabled() bool | Determines whether sitemaps are enabled or not. |
| register_sitemaps() void | Registers and sets up the functionality for all supported sitemaps. |
| register_rewrites() void | Registers sitemap rewrite tags and routing rules. |
| render_sitemaps() void | Renders sitemap templates based on rewrite rules. |
| redirect_sitemapxml() bool | Redirects a URL to the wp-sitemap.xml
Parameters: $bypass: mixed, $query: mixed |
| add_robots() string | Adds the sitemap index to robots.txt.
Parameters: $output: mixed, $is_public: mixed |
Properties
| Property / Type | Description |
|---|---|
| $index mixed public | No description available. |
| $registry mixed public | No description available. |
| $renderer mixed public | No description available. |
Class Information
Since Version
5.5.0
Source File
wp-includes/sitemaps/class-wp-sitemaps.php
Advertisement