Skip to content

feat: register abilities with the Abilities API - #567

Merged
selul merged 8 commits into
developmentfrom
feat/abilities-api
Sep 29, 2026
Merged

selul merged 8 commits into
developmentfrom
feat/abilities-api

Conversation

@selul

@selul selul commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Registers the LightStart abilities with the WordPress Abilities API (no-op below WP 6.9).

  • lightstart/get-mode — wpmm_get_capability( 'settings' ) (default manage_options)
  • lightstart/set-mode — wpmm_get_capability( 'settings' ) (default manage_options), plus edit_post on the selected page
  • lightstart/list-subscribers — wpmm_get_capability( 'subscribers' ) (default manage_options)

The page take-over logic from switch_selected_page() moved into the wpmm_switch_selected_page() helper so both the settings screen and set-mode use it.

  • Opts in to the SDK AI Connect module through the wp_maintenance_mode_ai_connect_metadata filter (no-op until the SDK release with the module is bundled).

Testing: php -l, PHPCS and PHPStan pass; PHPUnit was not run locally (no WP test environment).

  • AI Connect collects the abilities by name prefix; the sensitive ones opt out with meta.ai_connect = false.

Related: Codeinwp/wp-plugin-easy-mcp#143

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@pirate-bot

pirate-bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Plugin build for e6e16df is ready 🛎️!

selul and others added 7 commits September 18, 2026 17:15
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018GJfggt4S4RuAfF24E93EK
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018GJfggt4S4RuAfF24E93EK
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018GJfggt4S4RuAfF24E93EK
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018GJfggt4S4RuAfF24E93EK
The first SDK release that carries the AI Connect module this PR opts into.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018GJfggt4S4RuAfF24E93EK
Picks up the AI Connect fixes since 3.3.64: the Enable button hides once
the connector is active, the notice matches core's height, and the
"enabled" event for products with their own notification UI.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018GJfggt4S4RuAfF24E93EK
@selul
selul merged commit 1a116cc into development Sep 29, 2026
7 checks passed
@selul
selul deleted the feat/abilities-api branch September 29, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants