{"id":178545,"date":"2023-09-03T16:01:07","date_gmt":"2023-09-03T16:01:07","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/generator-for-playground\/"},"modified":"2026-03-10T12:40:07","modified_gmt":"2026-03-10T12:40:07","slug":"toys-for-playground","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/toys-for-playground\/","author":13803083,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.5","stable_tag":"1.2.5","tested":"6.9.4","requires":"6.3","requires_php":"7.4","requires_plugins":null,"header_name":"Toys for Playground","header_author":"Marc Armengou","header_description":"Generate a copy of your site, with all your active plugins and your active theme in WordPress Playground.","assets_banners_color":"","last_updated":"2026-03-10 12:40:07","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/toys-for-playground\/","header_author_uri":"https:\/\/www.marcarmengou.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":3041,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.2.3":{"tag":"1.2.3","author":"Marc4","date":"2026-03-10 11:33:18"},"1.2.4":{"tag":"1.2.4","author":"Marc4","date":"2026-03-10 12:08:05"},"1.2.5":{"tag":"1.2.5","author":"Marc4","date":"2026-03-10 12:40:07"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3375887,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2.3","1.2.4","1.2.5"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2967479,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2967479,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2967479,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2967479,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2967479,"resolution":"5","location":"assets","locale":""}},"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[221145],"plugin_category":[],"plugin_contributors":[221849],"plugin_business_model":[],"class_list":["post-178545","plugin","type-plugin","status-publish","hentry","plugin_tags-playground","plugin_contributors-marc4","plugin_committers-marc4"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/toys-for-playground\/assets\/icon-256x256.png?rev=3375887","icon_2x":"https:\/\/ps.w.org\/toys-for-playground\/assets\/icon-256x256.png?rev=3375887","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/toys-for-playground\/assets\/screenshot-1.png?rev=2967479","caption":""},{"src":"https:\/\/ps.w.org\/toys-for-playground\/assets\/screenshot-2.png?rev=2967479","caption":""},{"src":"https:\/\/ps.w.org\/toys-for-playground\/assets\/screenshot-3.png?rev=2967479","caption":""},{"src":"https:\/\/ps.w.org\/toys-for-playground\/assets\/screenshot-4.png?rev=2967479","caption":""},{"src":"https:\/\/ps.w.org\/toys-for-playground\/assets\/screenshot-5.png?rev=2967479","caption":""}],"raw_content":"<!--section=description-->\n<p><strong>Toys for Playground allows you to set up development, training, and testing environments in WordPress Playground easily. No Playground API knowledge needed.<\/strong><\/p>\n\n<p>Generate a custom WordPress setup in Playground with just a few clicks, including theme, plugins, and the WordPress and PHP versions that you need.<\/p>\n\n<p>Can be useful for developers, trainers, and testers. Test configurations risk-free, entirely in your browser.<\/p>\n\n<p>Available toys:<\/p>\n\n<p><strong>Cloner<\/strong>\nClone site, theme, and plugins to Playground.<\/p>\n\n<p><strong>Generator<\/strong>\nCreate a Playground from scratch, with the theme and plugins you want.<\/p>\n\n<p><strong>Plugin Explorer<\/strong>\nExplore any plugin directly from WordPress repository in Playground.<\/p>\n\n<p><strong>Theme Explorer<\/strong>\nExplore any theme directly from WordPress repository in Playground.<\/p>\n\n<p><strong>Sharer<\/strong>\nGenerate Playground link of your current page for debugging or sharing.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Go to <strong>Plugins &gt; Add New Plugin<\/strong>.<\/li>\n<li>Search for <strong>Toys for Playground<\/strong>.<\/li>\n<li>Install and activate the <strong>Toys for Playground<\/strong> plugin.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>[1.2.5] - 2026-10-03<\/h4>\n\n<ul>\n<li>Security: Escaped Settings link with esc_html__() in plugin action links.<\/li>\n<li>Fix: Added isset() guards for $_POST['themes'], $_POST['wp_version'], $_POST['php_version'] in cloner.php to prevent PHP warnings.<\/li>\n<li>Fix: Added isset() guard for $_POST['theme'] in generator.php to prevent PHP warnings.<\/li>\n<li>Code: Removed unused $plugin_basename variable from cloner.php.<\/li>\n<li>Code: cloner.php now starts with &lt;?php and closes the wrap div in HTML.<\/li>\n<li>Performance: get_option('enable_sharer') stored in variable to avoid repeated calls.<\/li>\n<\/ul>\n\n<h4>[1.2.4] - 2026-10-03<\/h4>\n\n<ul>\n<li>Fix: Corrected uninstall.php \u2014 removed incorrect DROP TABLE block.<\/li>\n<li>Code: Unified function prefix to toys_for_playground_ across all files.<\/li>\n<li>Code: Replaced echo esc_html__() with esc_html_e() in generator.php for consistency.<\/li>\n<li>Compatibility: Tested up to WordPress 6.9.<\/li>\n<\/ul>\n\n<h4>[1.2.3] - 2026-10-03<\/h4>\n\n<ul>\n<li>Updated WP version selector: 6.3 to 6.9 (removed older versions below 6.3).<\/li>\n<li>Updated PHP version selector: 7.4 to 8.5 (removed older versions below 7.4).<\/li>\n<li>Added WP 6.9 in WP version selector.<\/li>\n<li>Added PHP 8.5 in PHP version selector.<\/li>\n<li>Removed changelog.txt file.<\/li>\n<li>Improvement: wp_enqueue_script() now uses plugin version constant for cache busting.<\/li>\n<\/ul>\n\n<h4>[1.2.2] - 2025-10-15<\/h4>\n\n<ul>\n<li>Added WP 6.8 in WP version selector.<\/li>\n<li>Added PHP 8.4 in PHP version selector.<\/li>\n<li>Fix: Added text domain to 'Settings' link for i18n compatibility.<\/li>\n<li>Fix: Updated uninstall script.<\/li>\n<\/ul>\n\n<h4>[1.2.1] - 2024-28-10<\/h4>\n\n<ul>\n<li>Added new WordPress versions in Cloner and Generator.<\/li>\n<li>Compatibility: WordPress 6.0 - WordPress 6.7<\/li>\n<\/ul>\n\n<h4>[1.2.0] - 2024-13-01<\/h4>\n\n<ul>\n<li>Added latest and beta params in WP version selector.<\/li>\n<li>Compatibility: WordPress 6.0 - WordPress 6.4<\/li>\n<li>Compatibility: PHP 7.0 - PHP 8.3<\/li>\n<\/ul>\n\n<h4>[1.1.9] - 2023-10-10<\/h4>\n\n<ul>\n<li>Added Copy button in Sharer toy modal.<\/li>\n<li>Update new Storage params<\/li>\n<\/ul>\n\n<h4>[1.1.8] - 2023-15-09<\/h4>\n\n<ul>\n<li>Added Sharer toy<\/li>\n<li>Added nightly param<\/li>\n<li>Added uninstall.php<\/li>\n<li>Minor corrections<\/li>\n<\/ul>\n\n<h4>[1.1.6] - 2023-08-09<\/h4>\n\n<ul>\n<li>Hidden submenus<\/li>\n<li>Some usability fixes<\/li>\n<\/ul>\n\n<h4>[1.1.5] - 2023-08-09<\/h4>\n\n<ul>\n<li>Fixes persistent storage<\/li>\n<li>Fixes i18n<\/li>\n<li>Separate PHP files for each tool.<\/li>\n<li>Corrected and summarized text.<\/li>\n<li>Added plugin information and images<\/li>\n<li>More visible directory buttons<\/li>\n<\/ul>\n\n<h4>[1.1.1] - 2023-03-09<\/h4>\n\n<ul>\n<li>i18n ready<\/li>\n<li>Added WP 6.3 WP selector in toys<\/li>\n<li>Added Plugin Explorer<\/li>\n<li>Added Theme Explorer<\/li>\n<li>Rewritted the Generator toy<\/li>\n<\/ul>\n\n<h4>[1.0.8] - 2023-02-09<\/h4>\n\n<ul>\n<li>Compatibility: WordPress 5.9 - WordPress 6.3<\/li>\n<li>Compatibility: PHP 5.9 - PHP 8.2<\/li>\n<li>Added Storage option<\/li>\n<li>Added inactive plugins and themes<\/li>\n<li>Added WordPress &amp; PHP version selectors<\/li>\n<li>Added some help texts<\/li>\n<li>Some corrections<\/li>\n<\/ul>\n\n<h4>[1.0] - 2023-16-06<\/h4>\n\n<ul>\n<li>First version.<\/li>\n<\/ul>","raw_excerpt":"Toys for Playground allows you to set up development, training, and testing environments in WordPress Playground easily. No Playground API knowledge n &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/178545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=178545"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/marc4"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=178545"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=178545"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=178545"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=178545"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=178545"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=178545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}