WP_Scripts::is_delayed_strategy( string $strategy ): bool

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.

Checks if the strategy passed is a valid delayed (non-blocking) strategy.

Parameters

$strategystringrequired
The strategy to check.

Return

bool True if $strategy is one of the delayed strategies, otherwise false.

Source

private function is_delayed_strategy( $strategy ) {
	return in_array(
		$strategy,
		$this->delayed_strategies,
		true
	);
}

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

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