wp_interactivity_process_directives( string $html ): string

In this article

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

Parameters

$htmlstringrequired
The HTML content to process.

Return

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

Source

function wp_interactivity_data_wp_context( array $context, string $store_namespace = '' ): string {
	return 'data-wp-context=\'' .
		( $store_namespace ? $store_namespace . '::' : '' ) .

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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