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

Preview POC #3

Merged
merged 14 commits into from Sep 30, 2020
Merged

Preview POC #3

merged 14 commits into from Sep 30, 2020

Conversation

DAreRodz
Copy link
Member

What:

Adds support for previewing posts/pages/CPTs using the frontity embedded mode. Closes #2

Why

That feature is required by: #2

How

Generating a temporal JWT for each preview, giving capabilities to any user to read the specific draft or revision. It uses the WordPress capability system. That token is sent to Frontity in the token query parameter.

@DAreRodz DAreRodz self-assigned this Sep 28, 2020
Copy link
Member

@luisherranz luisherranz left a comment

Choose a reason for hiding this comment

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

Awesome work @DAreRodz!

I loved going through the code 😄

@luisherranz luisherranz merged commit 10d9716 into master Sep 30, 2020
@luisherranz luisherranz deleted the preview-poc branch September 30, 2020 08:14
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.

Finish the PHP plugin for the embedded mode and the preview. [8pt]
2 participants