PHP Filters
lzb_pro/preload_blocks
Controls whether blocks should be preloaded in the editor for immediate preview display.
This filter allows you to enable or disable the block preloading feature, which displays block previews immediately once the page editor is loaded, improving the user experience by showing content without waiting for individual block renders.
Attributes
Name | Type | Description |
---|---|---|
$enabled | Boolean | whether block preloading is enabled (default: true ) |
Usage
function my_lzb_pro_preload_blocks( $enabled ) {
// Disable block preloading
return false;
}
add_filter( 'lzb_pro/preload_blocks', 'my_lzb_pro_preload_blocks' );