wppaste
WordPress

apply_filters( 'wp_ai_client_cache_group', string $group )

Since
7.1.0
Filters the cache group used by the WP AI Client cache adapter.

Description

Allows integrators to change the object cache group under which AI client items are stored. This is useful for avoiding key collisions, creating environment-specific caches, or adapting to backend constraints.

Compatibility

WordPress
since 7.1.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in 1 of the 5 tracked releases, added in 7.1.0.

Parameters

$groupstring
The cache group.

Where this hook fires · 1

  • wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:51WP_AI_Client_Cache::get_cache_group()

Source code

		 * environment-specific caches, or adapting to backend constraints.		 *		 * @since 7.1.0		 *		 * @param string $group The cache group.		 */		return (string) apply_filters( 'wp_ai_client_cache_group', self::CACHE_GROUP );	} 	/**	 * Fetches a value from the cache.	 *	 * @since 7.0.0

Changelog

Introduced in 7.1.0.

Signature, return type and hooks compared across 1 parsed release.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.