wp_enqueue_block_editor_script_modules()
Enqueues script modules required by the block editor.
No Hooks.
Returns
null. Nothing (null).
Usage
wp_enqueue_block_editor_script_modules();
Changelog
| Since 6.9.0 | Introduced. |
wp_enqueue_block_editor_script_modules() wp enqueue block editor script modules code WP 7.0
function wp_enqueue_block_editor_script_modules() {
/*
* Enqueue the LaTeX to MathML loader for the math block editor.
* The loader dynamically imports the main LaTeX to MathML module when needed.
*/
wp_enqueue_script_module( '@wordpress/latex-to-mathml/loader' );
}