Plugin Previews are now available for opt-in, I've added a live preview to my block plugin
On wordpress.org, there are two things required for a plugin preview button to appear to all users:
- A valid
blueprint.json
file must be provided in the pluginsassets/blueprints
sub-directory. - The plugin preview must be set to “public” from the plugin’s Advanced view by a committer.
Read the blueprint documentation for more information.
btw:
-
The blueprint.json below has comments. If you use it as a template. remove the
_comment*
keys and values. -
I know that post id 2 exist, so instead of doing
wp_inser_post
I dowp_update_post( array('ID' => 2, 'post_title' => 'My Title','post_content' => '<!-- my content /-->' ) );
and redirect to post 2.