jetpack_sitemap_use_xmlwriter
jetpack_sitemap_use_xmlwriter
Appears in: jetpack.14.8, jetpack.14.9.1, jetpack.15.0, jetpack.15.1, jetpack.15.1.1, jetpack.15.2, jetpack.15.3.1
Hook Type: filter
Displaying hooks found in version: jetpack.15.3.1apply_filters('jetpack_sitemap_use_xmlwriter') is found 1 times:
- /modules/sitemaps/sitemap-buffer-factory.php line 45
* @module sitemaps * * @param bool $use_xmlwriter Whether to use XMLWriter. Current default is true. */ $use_xmlwriter = apply_filters( 'jetpack_sitemap_use_xmlwriter', true ); // First try XMLWriter if available if ( $use_xmlwriter && class_exists( 'XMLWriter' ) ) { $class_name = 'Jetpack_Sitemap_Buffer_' . ucfirst( $type ) . '_XMLWriter'; if ( class_exists( $class_name ) ) { return new $class_name( $item_limit, $byte_limit, $time );