Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #51117, comment 9


Ignore:
Timestamp:
03/03/2026 07:44:03 PM (7 months ago)
Author:
westonruter

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51117, comment 9

    v2 v3  
    33Note that hooking `wp_sitemaps_loaded()` into `parse_request` will render the sitemap (or stylesheet) early and then exit, thereby skipping the unneeded main query altogether.
    44
    5 {{{
     5{{{#!php
     6<?php
    67add_action( 'parse_request', 'wp_sitemaps_loaded' );
    78