Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add term-level RRM settings #9961

Open
1 task
nfmohit opened this issue Jan 2, 2025 · 0 comments
Open
1 task

Add term-level RRM settings #9961

nfmohit opened this issue Jan 2, 2025 · 0 comments
Assignees
Labels
P0 High priority Team M Issues for Squad 2 Type: Enhancement Improvement of an existing feature

Comments

@nfmohit
Copy link
Collaborator

nfmohit commented Jan 2, 2025

Feature Description

As part of RRM Phase 2, the WordPress taxonomy term screens will allow users to override the snippet configuration at the taxonomy term level. This issue should implement the fields to allow the said configuration.

Example mock:
Image

The select field having a label of “Product ID Override”* will reflect and change the value of the googlesitekit_rrm_{Publication ID}:productID term meta setting with the following options:

  1. No change”*; Default; Value: Empty string.
  2. Off”*; Value: none.
  3. Open access”*; Value: openaccess.
  4. Any available product IDs for the connected publication, obtainable using the new productIDs module setting.

* The final version of the labels should be checked and confirmed with Sigal and Mariya.

In order to add the field, the following WordPress hooks should be used:

  • {$taxonomy}_add_form_fields
  • {$taxonomy}_edit_form_fields

The following hooks should be used to handle the saving of the term meta setting:

  • created_{$taxonomy}
  • edited_{$taxonomy}

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation Brief

Test Coverage

QA Brief

Changelog entry

@nfmohit nfmohit self-assigned this Jan 2, 2025
@nfmohit nfmohit added P0 High priority Type: Enhancement Improvement of an existing feature Team M Issues for Squad 2 labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 High priority Team M Issues for Squad 2 Type: Enhancement Improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant