LLMS_Blocks_Assets::editor_assets()
Enqueue Gutenberg block assets for backend editor.
Description Description
wp-blocks
: includes block type registration and related functions. wp-element
: includes the WordPress Element abstraction for describing the structure of your blocks. wp-i18n
: To internationalize the block’s text.
Return Return
(void)
Source Source
File: vendor/lifterlms/lifterlms-blocks/includes/class-llms-blocks-assets.php
public function editor_assets() { wp_enqueue_script( 'lifterlms_blocks-cgb-block-js', LLMS_BLOCKS_PLUGIN_DIR_URL . 'dist/blocks.build.js', array( 'wp-blocks', 'wp-i18n', 'wp-element' ), LLMS_BLOCKS_VERSION, true ); wp_enqueue_style( 'lifterlms_blocks-cgb-block-editor-css', LLMS_BLOCKS_PLUGIN_DIR_URL . 'dist/blocks.editor.build.css', array( 'wp-edit-blocks' ), LLMS_BLOCKS_VERSION ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.4.1 | Fix double slash in asset path. |
1.0.0 | Introduced. |