script_module_data_{$module_id}

script_module_data_{$module_id}

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('script_module_data_{$module_id}') is found 1 times:

  • /wp-includes/class-wp-script-modules.php line 440
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    * @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>
         *