{"id":173177,"date":"2023-04-12T22:31:06","date_gmt":"2023-04-12T22:31:06","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/pantheon-decoupled-preview\/"},"modified":"2024-05-02T14:20:57","modified_gmt":"2024-05-02T14:20:57","slug":"decoupled-preview","status":"closed","type":"plugin","link":"https:\/\/ibo.wordpress.org\/plugins\/decoupled-preview\/","author":14052970,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.6","stable_tag":"1.0.6","tested":"6.3.8","requires":"","requires_php":"","requires_plugins":null,"header_name":"Pantheon Decoupled Preview","header_author":"Pantheon","header_description":"Preview WordPress content on Front-end sites including Next.js","assets_banners_color":"","last_updated":"2024-05-02 14:20:57","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/pantheon-systems\/wp-decoupled-preview","header_author_uri":"https:\/\/pantheon.io\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":9603,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"getpantheon","date":"2023-04-12 22:30:28"},"1.0.2":{"tag":"1.0.2","author":"getpantheon","date":"2023-06-02 18:34:18"},"1.0.3":{"tag":"1.0.3","author":"getpantheon","date":"2023-06-16 20:55:02"},"1.0.4":{"tag":"1.0.4","author":"getpantheon","date":"2023-08-17 22:04:57"},"1.0.5":{"tag":"1.0.5","author":"getpantheon","date":"2023-08-30 15:48:28"},"1.0.6":{"tag":"1.0.6","author":"getpantheon","date":"2024-05-02 14:20:57"}},"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[181897,141196,190739,2475],"plugin_category":[],"plugin_contributors":[219862,219861,79920,80736,148561],"plugin_business_model":[],"class_list":["post-173177","plugin","type-plugin","status-closed","hentry","plugin_tags-decoupled","plugin_tags-headless","plugin_tags-next-js","plugin_tags-preview","plugin_contributors-abhisekmazumdar","plugin_contributors-backlineint","plugin_contributors-getpantheon","plugin_contributors-jazzs3quence","plugin_contributors-jspellman","plugin_committers-getpantheon"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/decoupled-preview.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin intends to provide a single home for preview on a variety of decoupled front-ends. Can be used with the <a href=\"https:\/\/decoupledkit.pantheon.io\/docs\/frontend-starters\/nextjs\/nextjs-wordpress\/introduction\">Decoupled Kit Next.js WordPress Starter<\/a> for pre-configured examples for post and page content.<\/p>\n\n<h3>Features<\/h3>\n\n<ul>\n<li>Preview while editing a Post\/Page.<\/li>\n<li>Configure multiple preview sites.<\/li>\n<li>Specify the post types (Post and Pages) that each preview site applies to.<\/li>\n<\/ul>\n\n<h3>Configuration<\/h3>\n\n<p>In the WordPress Admin Dashboard, navigate to <strong>Settings<\/strong> -&gt; <strong>Preview Sites<\/strong>, add one or more preview sites, and configure the following:<\/p>\n\n<ul>\n<li>Label: The name of the site.<\/li>\n<li>URL: The URL of the decoupled site you are providing preview data to.<\/li>\n<li>Secret: A token that will be passed to your decoupled site used to limit access to the preview.<\/li>\n<li>Preview Type: The type of preview site - currently only NextJS is supported.<\/li>\n<li>Content Types: The post types (like Post and Page) that this preview site applies to.<\/li>\n<\/ul>\n\n<p>For more information on how preview data can be consumed on your front-end site, see <a href=\"https:\/\/decoupledkit.pantheon.io\/docs\/frontend-starters\/nextjs\/nextjs-wordpress\/implementing-preview\">implementing decoupled preview<\/a>.<\/p>\n\n<!--section=installation-->\n<p>To install Decoupled Preview, follow these steps:<\/p>\n\n<ul>\n<li>Install the plugin from WordPress.org using the WordPress dashboard.<\/li>\n<li>Activate the plugin.<\/li>\n<\/ul>\n\n<p>To install Decoupled Preview in one line with WP-CLI:<\/p>\n\n<pre><code>wp plugin install decoupled-preview --activate\n<\/code><\/pre>\n\n<p>Additional information on configuring the plugin can be found in the configuration section of the project details.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20type%20of%20content%20can%20be%20previewed%3F'><h3>What type of content can be previewed?<\/h3><\/dt>\n<dd><p>While we hope to expand in the future, the initial release of this plugin only supports NextJS. It was developed in support of <a href=\"https:\/\/github.com\/pantheon-systems\/next-wordpress-starter\">Pantheon's Next WordPress Starter<\/a>, but can be applied to other NextJS sites using a similar approach.<\/p><\/dd>\n<dt id='does%20this%20plugin%20support%20the%20classic%20editor%3F'><h3>Does this plugin support the classic editor?<\/h3><\/dt>\n<dd><p>This plugin currently only supports the block editor.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.6  May 2, 2024<\/h4>\n\n<ul>\n<li>Updates Pantheon WP Coding Standards to 2.0 [<a href=\"https:\/\/github.com\/pantheon-systems\/wp-decoupled-preview\/pull\/63\">#63<\/a>]<\/li>\n<li>Fixes an issue with broken activation and deactivation hooks<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Preview Button Regression in WordPress 6.3. [<a href=\"https:\/\/github.com\/pantheon-systems\/wp-decoupled-preview\/pull\/58\">#58<\/a>]<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Improve Handling of secrets field. [<a href=\"https:\/\/github.com\/pantheon-systems\/wp-decoupled-preview\/pull\/53\">#53<\/a>]<\/li>\n<li>Move set default preview site functionality to wp-pantheon-decoupled. [<a href=\"https:\/\/github.com\/pantheon-systems\/wp-decoupled-preview\/pull\/54\">#54<\/a>]<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Bugfix for cases where Decoupled Preview link did not load due to a js error. [<a href=\"https:\/\/github.com\/pantheon-systems\/wp-decoupled-preview\/pull\/43\">#43<\/a>]<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Bugfix that prevented posts that didn't have a revision from being previewed.[<a href=\"https:\/\/github.com\/pantheon-systems\/wp-decoupled-preview\/pull\/39\">#39<\/a>].<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Update plugin slug for automated releases to wp.org [<a href=\"https:\/\/github.com\/pantheon-systems\/wp-decoupled-preview\/pull\/26\">#26<\/a>].<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Bugfixes and refactoring.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Preview headless WordPress content on Front-end sites including Next.js.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/173177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=173177"}],"author":[{"embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/getpantheon"}],"wp:attachment":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=173177"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=173177"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=173177"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=173177"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=173177"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=173177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}