{
  "landingPage": "/wp-admin/admin.php?page=fox-lms",
  "preferredVersions": {
    "php": "8.2",
    "wp": "latest"
  },
  "features": {
    "networking": true
  },
  "steps": [
    {
      "step": "login",
      "username": "admin",
      "password": "admin123"
    },
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "wordpress.org/plugins",
        "slug": "fox-lms"
      }
    },
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "wordpress.org/plugins",
        "slug": "quiz-maker"
      }
    },
    {
      "step": "runPHP",
      "code": "<?php\nrequire_once '/wordpress/wp-load.php';\n\n// Generate the Gutenberg block content dynamically\n$post_content = '<!-- wp:fox-lms/course-grid {\"skin\":\"grid\",\"columns\":2,\"minColWidth\":250,\"orderBy\":\"date\",\"order\":\"asc\",\"priceMin\":0,\"priceMax\":10000,\"shortcode\":\"[foxlms_course_grid skin=\\\"grid\\\" columns=\\\"2\\\" minColWidth=\\\"250\\\" orderBy=\\\"date\\\" order=\\\"asc\\\" priceMin=\\\"0\\\" priceMax=\\\"10000\\\"]\"} -->\n<div class=\"wp-block-fox-lms-course-grid\">[foxlms_course_grid skin=\\\"grid\\\" columns=\\\"2\\\" minColWidth=\\\"250\\\" orderBy=\\\"date\\\" order=\\\"asc\\\" priceMin=\\\"0\\\" priceMax=\\\"10000\\\"]</div>\n<!-- /wp:fox-lms/course-grid -->';\n\n// Create the new post\n$post_data = array(\n    'post_title'    => 'Fox LMS Course Grid Example',\n    'post_content'  => $post_content,\n    'post_status'   => 'publish',\n    'post_type'     => 'post'\n);\n\n// Insert the post into the database\nwp_insert_post($post_data);\n?>"
    },
    {
      "step": "setSiteOptions",
      "options": {
        "blogname": "Fox Lms Test Site",
        "blogdescription": "Automated Fox Lms Preview"
      }
    }
  ]
}
