Skip to content

Conversation

@justlevine
Copy link

@justlevine justlevine commented Nov 11, 2025

What?

Closes

Illustrative example of an Abstract_Ability class that is decoupled both from Abstract_Feature and WP_Ability.

Why?

WordPress#61

How?

Testing Instructions

Testing Instructions for Keyboard

Screenshots or screencast

Before After

@justlevine justlevine marked this pull request as ready for review November 11, 2025 19:14
@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: justlevine <justlevine@git.wordpress.org>

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

*/
protected function category(): string {
return 'ai-experiments'; // TODO: add a reusable way to get the category slug?
public function __construct( \WordPress\AI\Features\Title_Generation\Title_Generation $feature ) {
Copy link
Author

Choose a reason for hiding this comment

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

This can just as easily take an $id, $label, $description (or nothing and inverse the relationship) was just demonstrating how DI could look if there was a reason for an Ability and a Feature to be directly coupled.

@dkotter dkotter deleted the branch dkotter:feature/title-generation-base December 12, 2025 22:03
@dkotter dkotter closed this Dec 12, 2025
@justlevine justlevine deleted the dev/decoupled-abstract-ability branch December 13, 2025 00:43
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