wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_interactivity › WordPress Function

Since6.5.0
Deprecatedn/a
wp_interactivity ( No parameters )
Returns:
  • (WP_Interactivity_API) The main WP_Interactivity_API instance.
Defined at:
Codex:

Retrieves the main WP_Interactivity_API instance.

It provides access to the WP_Interactivity_API instance, creating one if it doesn't exist yet.


Source

function wp_interactivity(): WP_Interactivity_API {
	global $wp_interactivity;
	if ( ! ( $wp_interactivity instanceof WP_Interactivity_API ) ) {
		$wp_interactivity = new WP_Interactivity_API();
	}
	return $wp_interactivity;
}