Opened 8 years ago
Closed 8 years ago
#44180 closed enhancement (wontfix)
REST API: Expose 'preview_link' for viewable post types
| Reported by: | danielbachhuber | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | rest-api |
Description
To ensure clients have the correct "Preview" link to display, we should expose the post's preview_link through the REST API.
This value is generated by get_preview_post_link() which is filterable and thus subject to modification by third-party code.
Attachments (1)
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Closing in favor of #43316
In the Gutenberg implementation, including
preview_linkon the autosaves controller was sufficient for our needs.