Skip to content

Instantly share code, notes, and snippets.

@bgrgicak
bgrgicak / try-wp-doom-block-in-playground.json
Created July 22, 2026 11:59
WP Doom Block Playground blueprint mirror with local jsdos asset bootstrap
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"preferredVersions": {
"php": "8.3",
"wp": "latest"
},
"features": {
"networking": true
},
"landingPage": "/doom-block/",
@bgrgicak
bgrgicak / try-wp-doom-block-in-playground.json
Created July 22, 2026 10:42
WP Doom Block Playground blueprint mirror (responsive fix)
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"preferredVersions": {
"php": "8.3",
"wp": "latest"
},
"features": {
"networking": true
},
"landingPage": "/doom-block/",
@bgrgicak
bgrgicak / try-wp-doom-block-in-playground.json
Created July 22, 2026 10:20
WP Doom Block repo-hosted blueprint mirror for Playground testing
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"preferredVersions": {
"php": "8.3",
"wp": "latest"
},
"features": {
"networking": true
},
"landingPage": "/doom-block/",
@bgrgicak
bgrgicak / wp-doom-block-blueprint.json
Created July 22, 2026 10:11
WP Doom Block Playground blueprint
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"title": "WP Doom Block demo",
"author": "Bero / Gil",
"description": "Installs the WP Doom Block plugin and creates a page with the DOOM block already inserted."
},
"landingPage": "/doom-block/",
"preferredVersions": {
"php": "8.3",
@bgrgicak
bgrgicak / admin-email-sender.php
Created July 10, 2026 11:39
Admin email sender plugin
<?php
/**
* Plugin Name: Admin Email Sender
* Description: Adds a wp-admin page that lets administrators send plain-text emails using WordPress wp_mail().
* Version: 1.0.0
* Author: Your Name
* License: GPL-2.0-or-later
*/
if (!defined('ABSPATH')) {
@bgrgicak
bgrgicak / SKILL.md
Created June 11, 2026 06:49
Just build it

name: just-build-it description: | Applies whenever the user asks for implementation, a refactor, a migration, a new feature, or any concrete written output (code, config, document, codemod, spec). Overrides the default instincts to phase the work across sessions, poll the user for preferences, propose a scoped-down version, or hedge with "this is substantial." Does NOT apply to genuinely open debugging questions where the problem itself is unknown, and does NOT apply when the task literally cannot proceed without code or credentials the user has not provided — see "The guardrail" below.

@bgrgicak
bgrgicak / blueprint.json
Created March 3, 2026 06:09
Mime type test
{
"landingPage": "/",
"preferredVersions": {
"php": "8.2",
"wp": "latest"
},
"steps": [
{
"step": "mkdir",
"path": "/wordpress/wp-content/plugins/test-cjs-mjs/assets"
<?php
/**
* Plugin Name: Cron Sleep Test
* Description: A 15-second cron job that runs on every page load.
* Version: 3.1.0
*/
if ( ! defined( 'WP_CRON_LOCK_TIMEOUT' ) ) {
define( 'WP_CRON_LOCK_TIMEOUT', 1 );
}
@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"
}
}
]