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

How to add custom preview options in WP 6.7 #328

Open
bph opened this issue Nov 1, 2024 · 0 comments
Open

How to add custom preview options in WP 6.7 #328

bph opened this issue Nov 1, 2024 · 0 comments

Comments

@bph
Copy link
Collaborator

bph commented Nov 1, 2024

Discussion #315

There's a new Preview Options API coming in WordPress 6.7: WordPress/gutenberg#64644 (comment)

It allows you to add custom options to the preview dropdown in the editor:

image

What we need is a step-by-step walkthrough of how to implement custom preview options. The API is just for adding the preview button in the dropdown, but the onClick() method (what happens when the button is clicked) is custom. We could share several different ideas on what's possible and what it could be used for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants