You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 5, 2026. It is now read-only.
There’s an inconsistency in how the Abilities API handles the action checks for category and ability registration.
Current behavior:
doing_action( 'abilities_api_categories_init' )check is performed directly inside theregister()method.abilities_api_categories_initaction.wp_register_ability().did_action()instead, allowing registration even after the action has fired.Discussion points:
doing_action()), or remain flexible usingdid_action()?register()method vs wrapper function) should enforce this restriction?Originally posted by @gziolo in #102 (comment)