Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#62210 new enhancement

Allow variations to be filtered

Reported by: kbat82's profile kbat82 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.7
Component: Themes Keywords:
Focuses: Cc:

Description

There's no way to currently modify theme variations. Only to add new ones.

Some use cases:

  1. Allow a plugin to check color contrasts and make changes to variations
  2. Allow plugins to dynamically add settings or styles
  3. Allow a plugin/host/etc filter a blank them as a part of an external onboarding style selection

This is related to https://core.trac.wordpress.org/ticket/61605 but comments there are mostly about adding new variations, not altering existing ones. Plus, half of that user's issue was changed via https://github.com/WordPress/gutenberg/pull/63318

GitHub PR: https://github.com/WordPress/gutenberg/pull/66079

Change History (2)

This ticket was mentioned in PR #7559 on WordPress/wordpress-develop by @kbat82.


4 months ago
#1

  • Keywords has-patch added

Adds a filter to allow developers to edit/hide/show/etc theme variations

Trac ticket: https://core.trac.wordpress.org/ticket/62210#ticket

#2 @kbat82
4 months ago

  • Keywords has-patch removed

PR on wordpress-develop here: https://github.com/WordPress/wordpress-develop/pull/7559

tbh I'm not 100% if I should be making a PR elsewhere or this is as far as I need to go for now.

Note: See TracTickets for help on using tickets.