WordPress\AiClientDependencies\Http\Discovery

ClassDiscovery::prependStrategypublic staticWP 1.0

Prepend a strategy at the beginning of the strategy queue.

Method of the class: ClassDiscovery{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = ClassDiscovery::prependStrategy( $strategy );
$strategy(string) (required)
Fully qualified class name to a DiscoveryStrategy.

ClassDiscovery::prependStrategy() code WP 7.0

public static function prependStrategy($strategy)
{
    array_unshift(self::$strategies, $strategy);
    self::clearCache();
}