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

new calendar endpoints | part 2/4 | endpoint base #928

Conversation

carstingaxion
Copy link
Collaborator

@carstingaxion carstingaxion commented Sep 27, 2024

This PR is part of the fragmentation of #831, which was way too big to review or merge.
I try to do better in the future.

Description of the Change

This PR adds the basic class to handle the custom endpoints. The Endpoint class provides functionality for registering custom endpoints based on post types or taxonomies. It defines rewrite rules, adds custom query variables, and handles wether to redirect or to load a custom template.

Closes #

How to test the Change

  1. ...

Changelog Entry

Added - New ability to create custom endpoint

Credits

Props @carstingaxion

Checklist:

@carstingaxion carstingaxion marked this pull request as draft October 4, 2024 00:51
Copy link

github-actions bot commented Oct 4, 2024

Preview changes with Playground

You can preview the recent changes for PR#928 with the following PHP versions:

PHP Version 8.3

PHP Version 7.4

Download .zip with build changes

Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions.

@mauteri mauteri changed the base branch from main to develop October 10, 2024 12:58
@carstingaxion carstingaxion marked this pull request as ready for review October 21, 2024 16:19
@carstingaxion carstingaxion changed the title new calendar endpoints | part 2/n | endpoint base new calendar endpoints | part 2/4 | endpoint base Oct 21, 2024
@mauteri mauteri merged commit e220c58 into GatherPress:develop Oct 22, 2024
13 checks passed
carstingaxion added a commit to carstingaxion/gatherpress that referenced this pull request Oct 25, 2024
carstingaxion added a commit to carstingaxion/gatherpress that referenced this pull request Oct 25, 2024
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