WP_Script_Modules::get_marked_for_enqueue(): array

In this article

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

Retrieves the list of script modules marked for enqueue.

Return

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

Source

private function get_marked_for_enqueue(): array {
	$enqueued = array();
	foreach ( $this->registered as $id => $script_module ) {
		if ( true === $script_module['enqueue'] ) {
			$enqueued[ $id ] = $script_module;
		}
	}
	return $enqueued;
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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