LLMS_Blocks::admin_print_scripts()
Print dynamic block information as a JS variable.
Description Description
Allows us to ensure we only add visibility attributes to static blocks. Prevents an issue causing rest api validation issues during attribute validation because it’s impossible to register custom attributes on a block.
Return Return
(void)
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks.php
* because it's impossible to register custom attributes on a block. * * @link https://github.com/gocodebox/lifterlms-blocks/issues/30 * * @since 1.5.1 * @since 2.0.0 Since WordPress 5.8 blocks are available in widgets and customizer screen too. * * @return void */ public function admin_print_scripts() {
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Since WordPress 5.8 blocks are available in widgets and customizer screen too. |
1.5.1 | Introduced. |