Repository navigation
Custom Hook Block 2.0.0
Custom Hook Block 2.0.0 combines the original Custom Hook Block with Registered Render Blocks.
- Keep existing PHP
add_actioncallbacks and explicitly register their display hooks withchb_register_hook. - Edit typed settings and native block styles, with PHP previews in the editor and on the site.
- Preserve both saved block identities and the existing
rrb_registration APIs. - New blocks start empty. No default background box or padding is imposed.
- Includes migration guidance, PHP/Code Snippets and Ajax examples, real screenshots, banner and icon assets.
Upgrade: register each existing display hook first. Unregistered hooks produce no frontend output. Deactivate the separate Registered Render Blocks plugin before using Custom Hook Block. Existing Registered Render Blocks content does not need to be rewritten.
Validation: 68 runtime checks, 10 site-adapter checks, both coactivation load orders, build/lint, real editor insertion/save/reload and frontend Ajax checks passed. Plugin Check 2.1.0 passed 29 static checks on the exact ZIP fileset. Five runtime asset checks were unavailable in Studio; direct served-page checks were used. Tested on WordPress 7.1.2/PHP 8.4; minimum-version runtime matrix remains untested.
WordPress.org approval has not been obtained. The ZIP attached here is the installable package; source archives also contain development files. See readme.txt for the changelog and README.md for migration details.