WP_Script_Modules::get_registered( string $id ): array|null

In this article

Gets the data for a registered script module.

Parameters

$idstringrequired
The script module identifier.

Return

array|null The script module data, or null if not registered.

Source

public function get_registered( string $id ): ?array {
	return $this->registered[ $id ] ?? null;
}

Changelog

VersionDescription
7.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.