jetpack_sitemap_use_xmlwriter

jetpack_sitemap_use_xmlwriter

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.14.8

apply_filters('jetpack_sitemap_use_xmlwriter') is found 1 times:

  • /modules/sitemaps/sitemap-buffer-factory.php line 40
    		 * @module sitemaps
    		 *
    		 * @param bool $use_xmlwriter Whether to use XMLWriter. Current default is false.
    		 */
    		$use_xmlwriter = apply_filters( 'jetpack_sitemap_use_xmlwriter', false );
    
    		// 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 );