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

Issue-13: convert templates/layouts from static files to custom post type #28

Merged

Conversation

mogmarsh
Copy link
Collaborator

Description

This PR converts templates/layouts from static files to a custom post type. It updates all references to the static files and file names to use the new custom post type, pulling from the REST API or WP_Query as appropriate.

Changes

  • Created a custom post type for templates/layouts
  • Updated all references to static files and file names to use the new custom post type
  • Replaced static file storage with REST API or WP_Query calls

Testing

  1. Create or update a template/layout through the admin interface
  2. Verify that the new custom post type is used for storing and retrieving templates/layouts

Related Issue

Notes

  • This PR assumes that the wp-newsletter-builder plugin is properly set up and the required custom post type has been registered.
  • Please make sure to thoroughly test the changes before merging, as this is a significant change to the template/layout handling system.

@mogmarsh mogmarsh marked this pull request as ready for review November 6, 2023 15:43
Copy link
Member

@attackant attackant left a comment

Choose a reason for hiding this comment

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

🐙

@mogmarsh mogmarsh merged commit 0ae38e7 into develop Nov 7, 2023
7 checks passed
@mogmarsh mogmarsh deleted the feature/issue-13/convert-static-files-to-custom-post-type branch November 8, 2023 01:05
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