wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_should_output_buffer_template_for_enhancement › WordPress Function

Seit6.9.0
Veraltetn/v
wp_should_output_buffer_template_for_enhancement ( Keine Parameter )
Gibt zurück:
  • (bool) Whether the template should be output-buffered for enhancement.
Definiert in:
Codex:

Checks whether the template should be output buffered for enhancement.

By default, an output buffer is only started if a {@see 'wp_template_enhancement_output_buffer'} filter has been added by the time a template is included at the {@see 'wp_before_include_template'} action. This allows template responses to be streamed as much as possible when no template enhancements are registered to apply.


Ähnliche Funktionen:

Quellcode

function wp_should_output_buffer_template_for_enhancement(): bool {
	/**
	 * Filters whether the template should be output-buffered for enhancement.
	 *
	 * By default, an output buffer is only started if a {@see 'wp_template_enhancement_output_buffer'} filter has been
	 * added. For this default to apply, a filter must be added by the time the template is included at the
	 * {@see 'wp_before_include_template'} action. This allows template responses to be streamed as much as possible
	 * when no template enhancements are registered to apply. This filter allows a site to opt in to adding such
	 * template enhancement filters during the rendering of the template.
	 *
	 * @since 6.9.0
	 *
	 * @param bool $use_output_buffer Whether an output buffer is started.
	 */
	return (bool) apply_filters( 'wp_should_output_buffer_template_for_enhancement', has_filter( 'wp_template_enhancement_output_buffer' ) );
}