script_module_data_{$module_id}

script_module_data_{$module_id}

Hook Type: filter

See hook in core

Displaying hooks found in version: gutenberg.19.2.0

apply_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>
    			 *