WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

render_block_core_query_title() WP 1.0

Renders the core/query-title block on the server. For now it only supports Archive title, using queried object information

Хуков нет.

Возвращает

Строку. Returns the query title based on the queried object.

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

render_block_core_query_title( $attributes );
$attributes(массив) (обязательный)
Block attributes.

Код render_block_core_query_title() WP 5.8.1

function render_block_core_query_title( $attributes ) {
	$type       = isset( $attributes['type'] ) ? $attributes['type'] : null;
	$is_archive = is_archive();
	if ( ! $type || ( 'archive' === $type && ! $is_archive ) ) {
		return '';
	}
	$title = '';
	if ( $is_archive ) {
		$title = get_the_archive_title();
	}
	$tag_name           = isset( $attributes['level'] ) ? 'h' . (int) $attributes['level'] : 'h1';
	$align_class_name   = empty( $attributes['textAlign'] ) ? '' : "has-text-align-{$attributes['textAlign']}";
	$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name ) );
	return sprintf(
		'<%1$s %2$s>%3$s</%1$s>',
		$tag_name,
		$wrapper_attributes,
		$title
	);
}