New and updated in 7.0.0
-
Determines whether an item is present in the cache.
Used by 0 functions | Uses 2 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:193 -
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:208 -
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:231 -
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 -
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 2 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:63 -
Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
Used by 0 functions | Uses 3 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:84 -
Delete an item from the cache by its unique key.
Used by 0 functions | Uses 2 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:98 -
Wipes clean the entire cache’s keys.
Used by 0 functions | Uses 3 functions | Source: wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:112 -
functionwp_supports_ai()
Returns whether AI features are supported in the current environment.
-
hookwp_supports_ai
Filters whether the current request can use AI.
-
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.
-
Filters the status text of default switch case in the plugins list table.
Used by 1 function | Uses 0 functions | Source: wp-admin/includes/class-wp-plugins-list-table.php:633 -
Adds hooks to load block styles on demand in classic themes.
-
Filters the hashing algorithm to use in the password_hash() and password_needs_rehash() functions.
-
Filters the options passed to the password_hash() and password_needs_rehash() functions.
-
Run the Block Hooks algorithm on a post object’s content.
-
functionresolve_pattern_blocks()
Replaces patterns in a block tree with their content.
-
Hooks into the REST API response for the Posts endpoint and adds the first and last inner blocks.
-
Returns the import map array.
-
Enqueues the skip-link styles.
-
Gets loading optimization attributes.
-
Determines whether to add `fetchpriority=’high’` to loading attributes.