Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Blocks_Assets::use_bc_assets()
Determines if WP Core backwards compatibility scripts should defined & be loaded.
Return Return
(boolean)
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks-assets.php
* @return boolean */ private function use_bc_assets() { return ( ! LLMS_Forms::instance()->are_requirements_met() && /** * Filter allowing opt-out of block editor backwards compatibility scripts. * * @since 2.0.0 * * @example * ``` * // Disable backwards compatibility scripts. * add_filter( 'llms_blocks_load_bc_scripts', '__return_false' ); * ``` * * @param boolean $load_scripts Whether or not to load the scripts. */ apply_filters( 'llms_blocks_load_bc_scripts', true )
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |