-
Notifications
You must be signed in to change notification settings - Fork 49
Labels
[Type] Developer DocumentationImprovements or additions to documentationImprovements or additions to documentation
Milestone
Description
Description
The documentation in docs/getting-started.md and docs/intro.md references the hook abilities_api_init, but the actual hook name used in the codebase is wp_abilities_api_init (with the wp_ prefix).
Impact
Developers following the documentation examples will register their abilities on a hook that never fires, causing their abilities to not be registered.
Expected Behavior
Documentation should reference wp_abilities_api_init to match the actual hook name.
Files Affected
docs/getting-started.md(lines 106-107)docs/intro.md(line 49)
Evidence
The correct hook name wp_abilities_api_init is used in:
includes/abilities-api/class-wp-abilities-registry.php(line 294)includes/abilities-api.php(multiple references)docs/hooks.md(correctly documented)docs/php-api.md(correctly documented)- All test files
Steps to Reproduce
- Follow the "Getting Started" documentation
- Register an ability using
add_action( 'abilities_api_init', ... ) - The ability will not be registered because the hook never fires
Metadata
Metadata
Assignees
Labels
[Type] Developer DocumentationImprovements or additions to documentationImprovements or additions to documentation