WP_Interactivity_API::register_script_modules()

In this article

Registers the @wordpress/interactivity script modules.

Source

		$this->config_data[ $store_namespace ] = array_replace_recursive(
			$this->config_data[ $store_namespace ],
			$config
		);
	}
	return $this->config_data[ $store_namespace ];
}

/**
 * Prints the serialized client-side interactivity data.
 *
 * Encodes the config and initial state into JSON and prints them inside a
 * script tag of type "application/json". Once in the browser, the state will
 * be parsed and used to hydrate the client-side interactivity stores and the

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.