benecaster_register_addon()
Registers an add-on’s boot-time bootstrap with core’s system-level entitlement gate, replacing the manual any_show_addon_is_active() check the Add-on Integration Pattern previously asked every add-on to write inline. Call it once from your own benecaster_boot handler.
Core invokes every registered $bootstrap on a late plugins_loaded pass (priority 20 — after benecaster_boot and after any add-on’s own plugins_loaded registration), but only for a slug entitled on at least one connected show (benecaster_addon_is_active_for_any_show() answers the same underlying question). An unregistered slug, or one registered but not currently entitled, is silently skipped — no bootstrap runs, so none of that add-on’s filters, actions, or REST routes ever register. Add-ons that have not migrated to this function and still use the manual inline check keep working, but sit outside this gate’s protection.
Backed by \Benecaster\Addons\AddonRegistrationManager.