{
    "$schema": "https://playground.wordpress.net/blueprint-schema.json",
    "landingPage": "/wp-admin/admin.php?page=lfe_layouts",
    "preferredVersions": {
        "php": "8.1",
        "wp": "latest"
    },
    "features": {
        "networking": true
    },
    "login": true,
    "steps": [
        {
            "step": "installPlugin",
            "pluginData": {
                "resource": "wordpress.org/plugins",
                "slug": "elementor"
            },
            "options": {
                "activate": true
            }
        },
        {
            "step": "installPlugin",
            "pluginData": {
                "resource": "wordpress.org/plugins",
                "slug": "layouts-for-elementor"
            },
            "options": {
                "activate": true
            }
        },
        {
            "step": "runPHP",
            "code": "<?php\nrequire_once '\/wordpress\/wp-load.php';\n\n\/\/ Mark Elementor's first-run setup wizard as already completed, so visitors land\n\/\/ straight on this plugin's own \"Layouts\" screen instead of being redirected to\n\/\/ admin.php?page=elementor-app#onboarding (Elementor\\Core\\Admin\\Admin::maybe_redirect_after_activation()\n\/\/ checks this exact option and skips the redirect if it's already set).\nupdate_option( 'elementor_onboarded', true );\n\n\/\/ This plugin's entire value proposition is browsing and importing from its own\n\/\/ live, hosted template library (demo.layoutsforelementor.com) - unlike a plugin\n\/\/ that only integrates with the site editor, there is no meaningful \"fabricated\n\/\/ demo content\" to build here that would be more representative than the real\n\/\/ thing. So instead of creating a fake page, this blueprint warms the plugin's\n\/\/ own template\/category transient caches with one real request each (the same\n\/\/ request its \"Sync Now\" button makes), so the landing page above renders the\n\/\/ live library immediately without waiting on a request during first paint.\nif ( class_exists( '\\Layouts_For_Elementor\\API\\Layouts_Remote' ) ) {\n\t$remote = \\Layouts_For_Elementor\\API\\Layouts_Remote::lfe_get_instance();\n\t$remote->templates_list( true );\n\t$remote->categories_list( true );\n}\n"
        }
    ]
}
