Skip to content

Instantly share code, notes, and snippets.

@bgrgicak
bgrgicak / intl-test-blueprint.json
Created December 2, 2025 09:00
intl-test-blueprint.json
{
"landingPage": "/intl-test.php",
"preferredVersions": {
"php": "latest",
"wp": "latest"
},
"steps": [
{
"step": "writeFile",
"path": "/wordpress/intl-test.php",
@bgrgicak
bgrgicak / blog-name-blueprint.json
Created November 27, 2025 08:28
Blog name Blueprint
{
"steps": [
{
"step": "setSiteOptions",
"options": {
"blogname": "My Blog",
"blogdescription": "A great blog"
}
}
]
@bgrgicak
bgrgicak / php-wasm-crash.php
Last active November 26, 2025 11:07
Crash PHP-wasm WordPress plugin
<?php
/*
* Plugin Name: Crash PHP-wasm
*/
class Top {
function __clone() {
file_get_contents("https://gist.githubusercontent.com/bgrgicak/faad52a34f909306c82800a76a936da5/raw/php-wasm-crash.php");
}
}
$x = new Top();
@bgrgicak
bgrgicak / soap-server.php
Last active November 26, 2025 10:20
SOAP server
<?php
/*
* Plugin Name: SOAP server
*/
class TestSoapServer
{
public function getMessage()
{
@bgrgicak
bgrgicak / wp-smushit-blueprint.json
Created November 20, 2025 10:47
wp-smushit blueprint
{
"landingPage": "/wp-admin/admin.php?page=smush",
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "wp-smushit"
},
"options": {
@bgrgicak
bgrgicak / wp-optimize-blueprint.json
Created November 20, 2025 10:20
WP-Optimize blueprint
{
"landingPage": "/wp-admin/admin.php?page=WP-Optimize",
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "wp-optimize"
},
"options": {
@bgrgicak
bgrgicak / w3tc-blueprint.json
Created November 19, 2025 12:05
W3 Total Cache
{
"landingPage": "/wp-admin/admin.php?page=w3tc_dashboard",
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "w3-total-cache"
},
"options": {
@bgrgicak
bgrgicak / gist:2887b3c1548027b26b61fa216739950c
Created November 19, 2025 10:14
elementskit-lite-blueprint.json
{
"landingPage": "/wp-admin/admin.php?page=elementskit&ekit-onboard-steps=loaded",
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "elementor"
},
"options": {
{
"landingPage": "/wp-admin/themes.php?page=starter-templates",
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "astra-sites"
},
"options": {
<?php
/**
* Plugin Name: Menu URL Cleaner (MU)
* Description: Automatically removes /scope:ANYTHING/ prefix from WordPress menu item URLs
* Version: 1.0.0
* Author: Your Name
*/
// Prevent direct access
if (!defined('ABSPATH')) {