Yoast\WP\SEO\Schema_Aggregator\User_Interface

Schemamap_Xml_Rewrite_Integration::headers_already_sentprotectedYoast 1.0

Tells whether the response headers have already been sent.

Wrapped in an overridable method so the unit tests can drive both branches of maybe_render_schema_map(); the test process cannot control what headers_sent() reports. Protected rather than private because Mockery cannot stub private methods.

Метод класса: Schemamap_Xml_Rewrite_Integration{}

Хуков нет.

Возвращает

bool. Whether the headers have already been sent.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->headers_already_sent(): bool;

Код Schemamap_Xml_Rewrite_Integration::headers_already_sent() Yoast 28.4

protected function headers_already_sent(): bool {
	return \headers_sent();
}