wp_interactivity_config()WP 6.5.0

Gets and/or sets the configuration of the Interactivity API for a given store namespace.

If configuration for that store namespace exists, it merges the new provided configuration with the existing one.

No Hooks.


Array. The configuration for the specified store namespace. This will be the updated configuration if a $config argument was provided.


wp_interactivity_config( $store_namespace, $config ): array;
$store_namespace(string) (required)
The unique store namespace identifier.
The array that will be merged with the existing configuration for the specified store namespace.
Default: array()


Since 6.5.0 Introduced.

wp_interactivity_config() code WP 6.5.4

function wp_interactivity_config( string $store_namespace, array $config = array() ): array {
	return wp_interactivity()->config( $store_namespace, $config );