Skip to content

Commit

Permalink
Add blueprint for live preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ocean90 committed Nov 18, 2024
1 parent cda3595 commit e648f48
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .wordpress-org/blueprints/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "/wp-admin/themes.php?page=wp-widget-disable",
"preferredVersions": {
"php": "8.1",
"wp": "latest"
},
"features": {
"networking": true
},
"steps": [
{
"step": "login"
},
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "wp-widget-disable"
},
"options": {
"activate": true
}
},
{
"step": "runPHP",
"code": "<?php require_once 'wordpress/wp-load.php'; update_option( 'rplus_wp_widget_disable_dashboard_option', [ 'dashboard_welcome_panel' => 'normal', 'dashboard_quick_press' => 'side' ] ); update_option( 'rplus_wp_widget_disable_sidebar_option', [ 'WP_Widget_Meta' => 'disabled' ] ); ?>"
},
{
"step": "setSiteOptions",
"options": {
"blogname": "Widget Disable Demo"
}
}
]
}

0 comments on commit e648f48

Please sign in to comment.