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 }}
Repository navigation
tooling: require the plugin prefix on post types, taxonomies, shortcodes, REST routes, cron hooks and admin pages #85
agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: toolingcomposer.json, PHPCS, PHPStan, Psalm and Rector configuration.priority: p3Someday. Needs a driving use case before it starts.type: testCoverage or test harness work with no behaviour change.
Principle 13: everything public carries the plugin's prefix. architecture.prefixedNames checks hooks, options, transients, meta keys and asset handles (prefixedNames in phpstan.neon.dist, tests/php/PHPStan/Rule/PrefixedNamesRule.php). Plugins also create names in WordPress's other shared spaces, and two plugins generated from the scaffold would clash there.
Scope
Add kinds to the rule, each with prefix, constants and allowed:
add_action with a first argument starting wp_ajax_ or wp_ajax_nopriv_
the rest of the action name
The lengths are WordPress limits; verify them against register_post_type() and register_taxonomy() in the installed WordPress stubs before encoding them.
One failing and one passing fixture call per kind, with the full message asserted; a 21-character post type fails on length.
The catalogue table lists the new kinds and their default prefixes; composer lint is green.
Verification
composer test
composer lint
Impact on generated plugins
Tests and tool configuration only; no interface or convention generated plugins rely on changes. Settings read the plugin's namespace and prefixes from configuration, so a generated plugin keeps the check after renaming.
agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: toolingcomposer.json, PHPCS, PHPStan, Psalm and Rector configuration.priority: p3Someday. Needs a driving use case before it starts.type: testCoverage or test harness work with no behaviour change.
Activity
schlessera commentedon Oct 23, 2026
Picking this up on branch
test/85-prefix-shared-names.