[wp-trac] [WordPress Trac] #61387: Interactivity API: not working in classic theme

WordPress Trac noreply at wordpress.org
Thu Jun 6 09:26:48 UTC 2024


#61387: Interactivity API: not working in classic theme
-------------------------------+------------------------------
 Reporter:  swissspidy         |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Interactivity API  |     Version:  6.5
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by luisherranz):

 Are you enqueueing your script with
 [https://developer.wordpress.org/reference/functions/wp_enqueue_script_module/
 wp_enqueue_script_module()]?

 Besides that, you have to use the function
 [https://developer.wordpress.org/reference/functions/wp_interactivity_process_directives/
 wp_interactivity_process_directives( $html )] to enable server-side
 processing of the directives in classic themes.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61387#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list