wp_interactivity_process_directives()WP 6.5.0

Processes the interactivity directives contained within the HTML content and updates the markup accordingly.

No Hooks.

Return

String. The processed HTML content. It returns the original content when the HTML contains unbalanced tags.

Usage

wp_interactivity_process_directives( $html ): string;
$html(string) (required)
The HTML content to process.

Changelog

Since 6.5.0 Introduced.

wp_interactivity_process_directives() code WP 6.6

function wp_interactivity_process_directives( string $html ): string {
	return wp_interactivity()->process_directives( $html );
}