{"id":178127,"date":"2023-09-29T12:29:37","date_gmt":"2023-09-29T12:29:37","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/playground-embedder\/"},"modified":"2023-10-14T14:48:56","modified_gmt":"2023-10-14T14:48:56","slug":"playground-embedder","status":"publish","type":"plugin","link":"https:\/\/nl.wordpress.org\/plugins\/playground-embedder\/","author":213249,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1","stable_tag":"1.1","tested":"6.2.9","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Playground embedder","header_author":"Joost de Valk","header_description":"Embeds the WordPress playground through a shortcode.","assets_banners_color":"fff5eb","last_updated":"2023-10-14 14:48:56","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/playground-embedder\/","header_author_uri":"https:\/\/joost.blog","rating":0,"author_block_rating":0,"active_installs":0,"downloads":817,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.1":{"tag":"1.1","author":"joostdevalk","date":"2023-10-14 14:48:56"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2979037,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2979037,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2979037,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2979037,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2979044,"resolution":"1","location":"assets","locale":"","width":1720,"height":588},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2979044,"resolution":"2","location":"assets","locale":"","width":1664,"height":1356}},"screenshots":{"1":"A default button loaded when the playground is inserted into a page.","2":"The playground in action, this time loaded with <code>lazy=0<\/code>."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[77595],"plugin_business_model":[],"class_list":["post-178127","plugin","type-plugin","status-publish","hentry","plugin_contributors-joostdevalk","plugin_committers-aristath","plugin_committers-joostdevalk","plugin_committers-progressplanner","plugin_committers-tacoverdo"],"banners":{"banner":"https:\/\/ps.w.org\/playground-embedder\/assets\/banner-772x250.png?rev=2979037","banner_2x":"https:\/\/ps.w.org\/playground-embedder\/assets\/banner-1544x500.png?rev=2979037","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/playground-embedder\/assets\/icon-128x128.png?rev=2979037","icon_2x":"https:\/\/ps.w.org\/playground-embedder\/assets\/icon-256x256.png?rev=2979037","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/playground-embedder\/assets\/screenshot-1.png?rev=2979044","caption":"A default button loaded when the playground is inserted into a page."},{"src":"https:\/\/ps.w.org\/playground-embedder\/assets\/screenshot-2.png?rev=2979044","caption":"The playground in action, this time loaded with <code>lazy=0<\/code>."}],"raw_content":"<!--section=description-->\n<p>Add the WordPress playground by adding a <code>[wp_playground]<\/code> shortcode to your pages. This plugin supports all the attributes the playground supports, which <a href=\"https:\/\/wordpress.github.io\/wordpress-playground\/docs\/query-api#available-options\">you can find here<\/a>.<\/p>\n\n<p>By default, the plugin lazy loads the playground, so it's only loaded after a button click. An additional feature is that you \ncan decide not to lazy load the playground by adding <code>lazy=0<\/code> to the shortcode, like so:<\/p>\n\n<pre><code>[wp_playground lazy=0]\n<\/code><\/pre>\n\n<p>At this point the plugin renders the playground immediately.<\/p>\n\n<h3>Blueprints<\/h3>\n\n<p>You can load entire blueprints into the shortcode by putting them in the content between the shortcode, like this:<\/p>\n\n<pre><code>[wp_playground]\n{\n    \"landingPage\": \"\/wp-admin\/\",\n    \"preferredVersions\": {\n        \"php\": \"8.0\",\n        \"wp\": \"latest\"\n    },\n    \"steps\": [\n        {\n            \"step\": \"login\",\n            \"username\": \"admin\",\n            \"password\": \"password\"\n        }\n    ]\n}\n[\/wp_playground]\n<\/code><\/pre>\n\n<p>These blueprints allow you to install themes, plugins and more. To learn about them, read the <a href=\"https:\/\/wordpress.github.io\/wordpress-playground\/blueprints-api\/index\">Playground documentation<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install &amp; activate the plugin.<\/li>\n<li>Add a <code>[wp_playground]<\/code> shortcode to one of your pages.<\/li>\n<li>You're done.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n\n<p>Added the lazy loading option.<\/p>\n\n<h4>1.0<\/h4>\n\n<p>Initial release.<\/p>","raw_excerpt":"Embeds the WordPress playground through a shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/178127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=178127"}],"author":[{"embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/joostdevalk"}],"wp:attachment":[{"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=178127"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=178127"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=178127"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=178127"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=178127"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/nl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=178127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}