WordPress at a glance
function is not described

WP_Hook::build_preinitialized_hooks() public WP 4.7.0

Normalizes filters set up before WordPress has initialized to WP_Hook objects.

It's a method of the class: WP_Hook{}

No Hooks.

Return

WP_Hook[]. Array of normalized filters.

Usage

$result = WP_Hook::build_preinitialized_hooks( $filters );
$filters(array) (required)
Filters to normalize.

Changelog

Since 4.7.0 Introduced.

Code of WP_Hook::build_preinitialized_hooks() WP 5.5.1

<?php
public static function build_preinitialized_hooks( $filters ) {
	/** @var WP_Hook[] $normalized */
	$normalized = array();

	foreach ( $filters as $tag => $callback_groups ) {
		if ( is_object( $callback_groups ) && $callback_groups instanceof WP_Hook ) {
			$normalized[ $tag ] = $callback_groups;
			continue;
		}
		$hook = new WP_Hook();

		// Loop through callback groups.
		foreach ( $callback_groups as $priority => $callbacks ) {

			// Loop through callbacks.
			foreach ( $callbacks as $cb ) {
				$hook->add_filter( $tag, $cb['function'], $priority, $cb['accepted_args'] );
			}
		}
		$normalized[ $tag ] = $hook;
	}
	return $normalized;
}