WP_Interactivity_API::add_hooks()publicWP 6.5.0

Adds the necessary hooks for the Interactivity API.

Method of the class: WP_Interactivity_API{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Interactivity_API = new WP_Interactivity_API();
$WP_Interactivity_API->add_hooks();

Changelog

Since 6.5.0 Introduced.

WP_Interactivity_API::add_hooks() code WP 6.5.4

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