Plugin Directory

Changeset 3441429


Ignore:
Timestamp:
01/17/2026 04:51:56 AM (3 months ago)
Author:
edgarr41
Message:

Still working on the blueprint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • eh-mortgage-calculator/assets/blueprints/blueprint.json

    r3441426 r3441429  
    11{
    22  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
    3   "landingPage": "/mortgage-calculator-demo",
     3  "landingPage": "/",
    44  "login": true,
    55  "preferredVersions": {
     
    1414        }
    1515    },
    16  
    1716    {
    18       "step": "installPlugin",
    19       "pluginData": {
    20         "resource": "wordpress.org/plugins",
    21         "slug": "eh-mortgage-calculator"
    22       },
    23       "options": {
    24         "activate": true,
    25       }
    26     },
    27    
    28     {
    29         "step": "runPHP",
    30         "code": "<?php require_once '/wordpress/wp-load.php'; wp_insert_post(array('post_title' => 'Mortgage Calculator Demo', 'post_name' => 'mortgage-calculator-demo', 'post_content' => '[eh_mortgage_calculator]', 'post_status' => 'publish', 'post_type' => 'page')); ?>"
     17      "step": "runPHP",
     18      "code": "<?php require_once '/wordpress/wp-load.php'; update_option('ehmc_show_chart', 1); $page_id = wp_insert_post(array('post_title' => 'Mortgage Calculator Demo', 'post_name' => 'mortgage-calculator-demo', 'post_content' => '[eh_mortgage_calculator]', 'post_status' => 'publish', 'post_type' => 'page')); if ($page_id) { update_option('show_on_front', 'page'); update_option('page_on_front', $page_id); flush_rewrite_rules(); } ?>"
    3119    }
    32    
    3320  ]
    3421}
Note: See TracChangeset for help on using the changeset viewer.