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, gutenberg.19.4.0, gutenberg.19.6.1, gutenberg.19.6.4, gutenberg.19.8.0, gutenberg.19.9.0, gutenberg.20.0.0, wordpress-6.7, wordpress-6.7.1, wordpress-6.7.2
Hook Type: filter
Displaying hooks found in version: wordpress-6.7.2apply_filters('script_module_data_{$module_id}') is found 1 times:
- /wp-includes/class-wp-script-modules.php line 440436437438439440441442443444445446
* @since 6.7.0
*
* @param
array
$data
The data associated with the Script Module.
*/
$data
= apply_filters(
"script_module_data_{$module_id}"
,
array
() );
if
(
is_array
(
$data
) &&
array
() !==
$data
) {
/*
* This data will be printed
as
JSON inside a script tag like this:
* <script type=
"application/json"
></script>
*