PHP Filters
lzb/block_defaults
Filters all available block default data.
Attributes
Name | Type | Description |
---|---|---|
$block_defaults | Array | all block default data |
Usage
PHP
function my_lzb_custom_default_value( $block_defaults ) {
// Set default value to your custom block data.
$block_defaults['lazyblocks_my_custom_data'] = 'Hello';
return $block_defaults;
}
add_filter( 'lzb/block_defaults', 'my_lzb_custom_default_value' );