[wp-trac] [WordPress Trac] #52727: wp_sitemaps_max_urls

WordPress Trac noreply at wordpress.org
Fri Mar 5 18:59:44 UTC 2021


#52727: wp_sitemaps_max_urls
--------------------------+-----------------------------
 Reporter:  pvde          |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Sitemaps      |    Version:  5.6.2
 Severity:  minor         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hello, The function to have more entries in one sitemap doesn't work.

 I use this custom made code:

 add_filter( 'wp_sitemaps_max_urls', 'filter_function_name_9755', 10, 2 );
 function filter_function_name_9755( $max_urls, $object_type ){
         // filter...

         return $max_urls;
 }
 return apply_filters( 'wp_sitemaps_max_urls', 1000, $object_type );

 But nothing happens. In fact, it messes up the entire sitemap.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52727>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list