WordPress\AiClientDependencies\Http\Discovery
ClassDiscovery::prependStrategy
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() ClassDiscovery::prependStrategy code WP 7.0
public static function prependStrategy($strategy)
{
array_unshift(self::$strategies, $strategy);
self::clearCache();
}