{
  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
  
  "siteOptions": {
    "blogname": "WpBusinessCard Demo"
  },
  "features": {
    "networking": true
  },
  "login": true,
  "landingPage": "/wp-admin/admin.php?page=wp-business-card-design",
  "steps": [
    {"step": "installTheme",
			"themeData": {
				"resource": "wordpress.org/themes",
				"slug": "twentynineteen"
			}
    },
    
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "url",
        "url": "https://wpbusinesscard.cloud/update/packages/wp-business-card.zip"
      },
      "options": {
        "activate": true
      }
    },
    {
      "step": "runPHP",
      "code": "<?php require '/wordpress/wp-load.php'; update_option('wpbc_plugin_activated', false);"
    },
    {"step": "writeFile",
      "path": "/wordpress/wp-content/mu-plugins/show-admin-notice-1.php",
      "data": "<?php\nadd_action(\n'admin_notices',\nfunction() {\necho '<div class=\"notice notice-warning\" id=\"custom-admin-notice-1\"><p>' . esc_html( 'Welcome to WordPress Playground!' ) . '</p></div>';\n}\n);"
    },
     {
      "step": "mkdir",
      "path": "/wordpress/wp-content/mu-plugins"
    },
    {
      "step": "writeFile",
      "path": "/wordpress/wp-content/mu-plugins/addFilter1.php",
      "data": "<?php add_action( 'admin_menu', function() {\nremove_menu_page( 'plugins.php' );\nremove_submenu_page( 'tools.php', 'import.php' );\nremove_submenu_page( 'tools.php', 'export.php' );\n}, 999 );add_action( 'admin_init', function() {\n$blocked = [\n'plugin-install.php',\n'plugins.php',\n'plugin-editor.php',\n'update.php',\n'update-core.php',\n'import.php',\n'export.php'\n];\n$current = basename( $_SERVER['PHP_SELF'] ?? '' );\nif ( in_array( $current, $blocked, true ) ) {\nwp_die(\n__( 'This action is disabled in the demo environment.', 'wpbc' ),\n__( 'Demo Locked', 'wpbc' ),\n403\n);\n}\n});add_filter( 'user_has_cap', function( $caps ) {\nforeach ( [ 'install_plugins', 'upload_plugins', 'update_plugins', 'delete_plugins', 'activate_plugins', 'edit_plugins' ] as $cap ) {\nif ( isset( $caps[ $cap ] ) ) {\n$caps[ $cap ] = false;\n}\n}\nreturn $caps;\n}, 999 );add_filter( 'pre_wp_export', function() {\nwp_die(\n__( 'Export is disabled in the demo environment.', 'wpbc' ),\n__( 'Demo Locked', 'wpbc' ),\n403\n);\n});\nadd_filter( 'wp_mail', '__return_false' );"
    }

  ]
}
