Genesis Custom Blocks is designed to be a replacement for the Block Lab plugin. Using Block Lab’s built in migration workflows, the vast majority of users will be able to transition to Genesis Custom Blocks without needing to make any manual changes.
Even the block templates that you’ve set up for you custom blocks are automatically compatible with Genesis Custom Blocks.
However, if you’ve customised or extended Block Lab using the built in actions and filters, you will simply need to update the filter names for them to continue working with Genesis Custom Blocks.
The previous hooks have the following compatible counterparts:
Actions
| From | To |
| block_lab_render_template | genesis_custom_blocks_render_template |
| block_lab_render_template_{$block->name} | genesis_custom_blocks_render_template_{$block->name} |
| block_lab_add_blocks | genesis_custom_blocks_add_blocks |
PHP Filters
| From | To |
| block_lab_show_pro_nag | genesis_custom_blocks_show_pro_nag |
| block_lab_data | genesis_custom_blocks_data |
| block_lab_data_{$key} | genesis_custom_blocks_data_{$key} |
| block_lab_get_block_attributes | genesis_custom_blocks_get_block_attributes |
| block_lab_override_theme_template | genesis_custom_blocks_override_theme_template |
| block_lab_blocks | genesis_custom_blocks_available_blocks |
| block_lab_template_path | genesis_custom_blocks_template_path |
| block_lab_icons | genesis_custom_blocks_icons |
| block_lab_allowed_svg_tags | genesis_custom_blocks_allowed_svg_tags |
| block_lab_default_fields | genesis_custom_blocks_default_fields |
| block_lab_field_value | genesis_custom_blocks_field_value |
| block_lab_sub_field_value | genesis_custom_blocks_sub_field_value |
JavaScript Filters
| From | To |
| block_lab_controls | genesisCustomBlocks.controls |
