-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Custom Preview Links #4555
Copy link
Copy link
Closed
Labels
Backwards CompatibilityIssues or PRs that impact backwards compatabilityIssues or PRs that impact backwards compatabilityREST API InteractionRelated to REST APIRelated to REST API[Feature] ExtensibilityThe ability to extend blocks or the editing experienceThe ability to extend blocks or the editing experience
Milestone
Metadata
Metadata
Assignees
Labels
Backwards CompatibilityIssues or PRs that impact backwards compatabilityIssues or PRs that impact backwards compatabilityREST API InteractionRelated to REST APIRelated to REST API[Feature] ExtensibilityThe ability to extend blocks or the editing experienceThe ability to extend blocks or the editing experience
Type
Fields
Give feedbackNo fields configured for issues without a type.
In the current Wordpress editor, you can currently filter the preview link to be your own custom link using
preview_post_link. Its appears that Gutenberg does not currently support this and does not appear to offer a hook to change this. From what I can see it appears tied to this method in/store/selectors.jsIf I am reading this correctly, this gets the current link from the state obj and appends the preview query arg.
It would be great if this value came from PHP or a JS hook was offered to override this selection. Since we are currently developing our new site using Gutenberg, I have no choice but to hack the JS.
If there is a hook, please drop me a line. #