wp_interactivity_process_directives()
Processes the interactivity directives contained within the HTML content and updates the markup accordingly.
No Hooks.
Returns
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() wp interactivity process directives code WP 6.8.1
function wp_interactivity_process_directives( string $html ): string { return wp_interactivity()->process_directives( $html ); }