Gets and/or sets the configuration of the Interactivity API for a given store namespace.
Description
If configuration for that store namespace exists, it merges the new provided configuration with the existing one.
Parameters
$store_namespacestringrequired- The unique store namespace identifier.
$configarrayoptional- The array that will be merged with the existing configuration for the specified store namespace.
Default:
array()
Source
function wp_interactivity_config( string $store_namespace, array $config = array() ): array {
return wp_interactivity()->config( $store_namespace, $config );
}
Changelog
| Version | Description |
|---|---|
| 6.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.