WP_Interactivity_API::add_hooks()

In this article

Adds the necessary hooks for the Interactivity API.

Source

public function add_hooks() {
	add_action( 'wp_enqueue_scripts', array( $this, 'register_script_modules' ) );
	add_action( 'wp_footer', array( $this, 'print_client_interactivity_data' ) );
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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