WordPress/ai

Disable features until valid AI credentials are entered (leaving non-Connector powered features alone like Abilities Explorer)

Chiusa

#197 aperta il 22 gen 2026

 (5 commenti) (0 reazioni) (0 assegnatari)PHP (136 fork)auto 404
Good first issueHelp Wanted[Type] Enhancement

Metriche repository

Star
 (246 stelle)
Metriche merge PR
 (Merge medio 5g 4h) (72 PR mergiate in 30 g)

Descrizione

What problem does this address?

Currently, when a user does not provide valid API credentials, they are still able to enable Experiments and view Available Experiments. As a result, when navigating to pages, the title generation button appears in the editor. However, clicking the Regenerate button triggers an error because the required AI credentials are missing or invalid.

This creates a confusing user experience and allows users to proceed through workflows that cannot function correctly without mandatory configuration.

https://github.com/user-attachments/assets/8170850b-b333-4772-8af7-fd17ccb60ac4

What is your proposed solution?

Since AI credentials are mandatory for experiment-related functionality, the system should enforce credential validation as a prerequisite before enabling any dependent features.

The proposed behavior is as follows:

  • The system must first verify that API credentials are provided and valid.
  • Only after successful validation:
  • The Enable Experiments checkbox should be activated.
  • The Available Experiments options should become selectable.
  • The Save Changes action should be enabled.
  • If credentials are missing or invalid:
  • All experiment-related options must remain disabled.
  • Users should be prevented from proceeding to subsequent steps.
  • Clear guidance should be provided to complete the mandatory credential setup.

This ensures a proper step-by-step flow, prevents invalid configurations, and avoids runtime errors by enforcing required prerequisites before allowing access to dependent features.

Guida contributor