script_module_data_{$module_id}
script_module_data_{$module_id}
Appears in: gutenberg.18.6.1, gutenberg.18.7.1, gutenberg.18.9.0, gutenberg.19.0.0, gutenberg.19.1.0, gutenberg.19.2.0
Hook Type: filter
Displaying hooks found in version: gutenberg.19.2.0apply_filters('script_module_data_{$module_id}') is found 1 times:
- /lib/compat/wordpress-6.7/script-modules.php line 47
* the data is associated with. * * @param array $data The data that should be associated with the array. */ $data = apply_filters( "script_module_data_{$module_id}", array() ); if ( is_array( $data ) && ! empty( $data ) ) { /* * This data will be printed as JSON inside a script tag like this: * <script type="application/json"></script> *