New and updated in 7.0.0
-
Fires when an AI client event is dispatched.
Used by 1 function | Uses 0 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-event-dispatcher.php:56 -
Converts an event object class name to a WordPress action hook name portion.
Used by 1 function | Uses 0 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-event-dispatcher.php:69 -
PSR-18 HTTP Client adapter using WordPress HTTP API.
Used by 0 functions | Uses 0 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php:29 -
Constructor.
Used by 1 function | Uses 0 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php:53 -
Sends a PSR-7 request and returns a PSR-7 response.
Used by 0 functions | Uses 5 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php:68 -
Sends a PSR-7 request with transport options and returns a PSR-7 response.
Used by 0 functions | Uses 5 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php:99 -
WordPress-specific PSR-14 event dispatcher for the AI Client.
Used by 0 functions | Uses 0 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-event-dispatcher.php:22 -
Dispatches an event to WordPress action hooks.
Used by 0 functions | Uses 2 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-event-dispatcher.php:35 -
Obtains multiple cache items by their unique keys.
Used by 0 functions | Uses 3 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:107 -
Persists a set of key => value pairs in the cache, with an optional TTL.
Used by 0 functions | Uses 3 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:138 -
Deletes multiple cache items in a single operation.
Used by 0 functions | Uses 2 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:155 -
Determines whether an item is present in the cache.
Used by 0 functions | Uses 1 function | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:171 -
Converts a PSR-16 TTL value to seconds for WordPress cache functions.
Used by 2 functions | Uses 0 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:186 -
Converts an iterable to an array.
Used by 3 functions | Uses 0 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:209 -
Discovery strategy for WordPress HTTP client.
Used by 0 functions | Uses 0 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-discovery-strategy.php:24 -
Creates an instance of the WordPress HTTP client.
Used by 0 functions | Uses 1 function | Source: wp-includes/ai-client/adapters/class-wp-ai-client-discovery-strategy.php:34 -
Wipes clean the entire cache’s keys.
Used by 0 functions | Uses 2 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:90 -
functionwp_supports_ai()
Returns whether AI features are supported in the current environment.
-
hookwp_supports_ai
Filters whether the current request can use AI.
-
functionwp_ai_client_prompt()
Creates a new AI prompt builder using the default provider registry.
-
classWP_AI_Client_Cache
WordPress-specific PSR-16 cache adapter for the AI Client.
Used by 0 functions | Uses 0 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:22 -
Fetches a value from the cache.
Used by 1 function | Uses 1 function | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:41 -
Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
Used by 0 functions | Uses 2 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:62 -
Delete an item from the cache by its unique key.
Used by 0 functions | Uses 1 function | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:76 -
Filters whether to propagate the blog status when a user is marked as spam.
-
functionwp_get_image_alttext()
Gets the alt text from image meta data.
-
Tests if opcode cache is enabled and available.
-
Tests if registration is open to everyone and the default role is privileged.