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

Update export options #124

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Update export options #124

wants to merge 2 commits into from

Conversation

g-elwell
Copy link
Member

Description

This PR improves the theme.json export by excluding core WP styles that shouldn't go into the theme.json file. It also adds a new option to export only the user customisations that have been made, which can be useful if you want to store these as a style variation on top of a base theme.json.

Change Log

  • Extends our REST API export endpoint, to support which type of theme data is included in the resulting output
  • Adds additional export option for exporting customisations only

Steps to test

  • Activate the plugin up on a theme which has a theme.json file
  • Make some customisations to the theme styles and save
  • Try the 'theme.json' export, all data should be exported
  • Try the 'customisations only' export, only your customisations should be exported

Screenshots/Videos

N/A

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@g-elwell g-elwell requested a review from a team as a code owner February 25, 2025 07:57
@g-elwell g-elwell self-assigned this Feb 25, 2025
@g-elwell g-elwell added the enhancement New feature or request label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant