Plugin Directory

Changeset 3304198


Ignore:
Timestamp:
06/01/2025 09:26:28 AM (10 months ago)
Author:
morelmathieuj
Message:

new attempt with blueprint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scheduler-widget/assets/blueprints/blueprint.json

    r3304196 r3304198  
    66  "steps": [
    77    {
    8         "step": "login",
    9         "username": "admin",
    10         "password": "password"
    11     }
     8            "step": "login",
     9            "username": "admin",
     10            "password": "password"
     11        },
     12        {
     13            "step": "runPHP",
     14            "code": "<?php require '\/wordpress\/wp-load.php'; wp_insert_post(['post_title' => 'Scheduler Widget demo!','post_content' => '<p><small>To add an event, click on the &#128935; button at the bottom-right corner. Use <em>drag and drop<\/em> to move and resize an event. Click <a href=\"\/wp-admin\/post.php?post=4&action=edit\">here<\/a> to edit the widget.<\/small><\/p><!-- wp:create-block\/scheduler-widget {\"width\":800,\"height\":600,\"initialDate\":\"\",\"minHour\":\"5\",\"maxHour\":\"18\",\"locale\":\"\",\"align\":\"center\"} --><p class=\"wp-block-create-block-scheduler-widget aligncenter\"><\/p><!-- \/wp:create-block\/scheduler-widget -->', 'post_status' => 'publish', 'post_type' => 'post']);"
     15        }
    1216  ],
    1317  "preferredVersions": {
Note: See TracChangeset for help on using the changeset viewer.