class Notifications_RuntimeRegisters WordPress hooks for the Notifications extension runtime.
class final
- Full name
Kernowdev\Clanbite\Extensions\Notification\Notifications_Runtime
Methods
filter_cp_players_templates()Add player-notifications to the Players extension FSE templates.instance()Get singleton instance.maybe_create_tables()Create tables if needed.maybe_redirect_guest_from_notifications_subpage()Require login for /players/{nicename}/notifications/ (same behaviour as the former subpage template).on_team_deleted()Clean up when team is deleted.on_user_deleted()Clean up when user is deleted.register_blocks()Register the notification bell block.register_cp_players_template_filter()Register before Players init (priority 10) registers block templates.register_notifications_shortcode()Register shortcode used by player-notifications.html.register_notifications_subpage()Register the notifications player subpage.register_rest_routes()Register REST API routes.register()Register hooks.
Defined in inc/extensions/notifications/class-notifications-runtime.php