wp_interactivity_config()
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.
Хуков нет.
Возвращает
Массив
. 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(строка) (обязательный)
- The unique store namespace identifier.
- $config(массив)
- The array that will be merged with the existing configuration for the specified store namespace.
По умолчанию: array()
Список изменений
С версии 6.5.0 | Введена. |
Код wp_interactivity_config() wp interactivity config WP 6.7.1
function wp_interactivity_config( string $store_namespace, array $config = array() ): array { return wp_interactivity()->config( $store_namespace, $config ); }