WP_Script_Modules::get_marked_for_enqueue(): array<string,

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only by core. It is listed here for completeness.

Retrieves the list of script modules marked for enqueue.

Description

Even though this is a private method and is unused in core, there are ecosystem plugins accessing it via the Reflection API. The ecosystem should rather use WP_Script_Modules::get_queue().

Return

array<string, array> Script modules marked for enqueue, keyed by script module identifier.

Source

private function get_marked_for_enqueue(): array {
	return wp_array_slice_assoc(
		$this->registered,
		$this->queue
	);
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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