Skip to content

Conversation

@theaminulai
Copy link
Member

@theaminulai theaminulai commented Jan 29, 2026

What?

Updates the AI Experiments plugin row actions on the WordPress Installed Plugins screen by:

  • Renaming the "Settings" link to "Experiments"
  • Adding a new "Credentials" link for quick access to AI provider credentials

Why?

The previous generic "Settings" label didn't clearly communicate what users would configure. Users frequently need to manage both experiments and credentials, but previously had to navigate through multiple admin screens to reach the credentials page. This change:

  • Improves discoverability of the plugin's two primary configuration surfaces
  • Reduces friction for users managing API credentials
  • Uses clearer, more descriptive labels that align with how users think about the plugin's functionality

How?

Modified the plugin_action_links() function in includes/bootstrap.php to:

  • Rename the existing link from "Settings" to "Experiments" (still pointing to options-general.php?page=ai-experiments)
  • Add a new "Credentials" link pointing to the AI Client settings page (options-general.php?page=wp-ai-client)
  • Both links are added via array_unshift() so they appear first in the row actions

Testing Instructions

  1. Navigate to PluginsInstalled Plugins in WP Admin
  2. Locate the AI Experiments plugin in the list
  3. Verify two new row action links appear: Experiments and Credentials
  4. Click Experiments and confirm it navigates to the AI Experiments settings page
  5. Return to the plugins list and click Credentials to verify it navigates to the AI Credentials Settings page
  6. Confirm both links function correctly and pages load as expected

Closes #205

Open WordPress Playground Preview

jeffpaul and others added 4 commits January 20, 2026 16:46
Replaces the 'Settings' link in the plugin action links with an 'Experiments' link, updating the label and destination accordingly.
Prepends a 'Credentials' link to the plugin action links in the admin, alongside the existing 'Experiments' link, for easier access to credential settings.
Copilot AI review requested due to automatic review settings January 29, 2026 13:45
@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: jeffpaul <jeffpaul@git.wordpress.org>
Co-authored-by: dkotter <dkotter@git.wordpress.org>
Co-authored-by: theaminulai <theaminuldev@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Inserted a newline after adding the 'Experiments' link in the plugin_action_links function for improved code readability.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the plugin row action links on the WordPress Installed Plugins screen to provide clearer navigation to the AI Experiments plugin's configuration pages.

Changes:

  • Renamed the generic "Settings" link to "Experiments" for better clarity about what can be configured
  • Added a new "Credentials" link for direct access to AI provider credentials management
  • Updated the documentation comment to reflect both links

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.80%. Comparing base (fd0d510) to head (7726dc0).
⚠️ Report is 49 commits behind head on develop.

Files with missing lines Patch % Lines
includes/bootstrap.php 0.00% 7 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #206      +/-   ##
=============================================
+ Coverage      50.33%   50.80%   +0.47%     
- Complexity       366      375       +9     
=============================================
  Files             26       27       +1     
  Lines           1951     1978      +27     
=============================================
+ Hits             982     1005      +23     
- Misses           969      973       +4     
Flag Coverage Δ
unit 50.80% <0.00%> (+0.47%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jeffpaul jeffpaul added this to the 0.3.0 milestone Jan 29, 2026
@jeffpaul
Copy link
Member

Tested via Playground, links look and work as expected

Screenshot 2026-01-29 at 1 08 43 PM

@jeffpaul jeffpaul requested a review from dkotter January 29, 2026 19:09
@dkotter dkotter merged commit 8b32903 into WordPress:develop Jan 29, 2026
22 checks passed
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.

Update Installed Plugins row actions to add “Experiments” and “Credentials” links

3 participants