Skip to content

Instantly share code, notes, and snippets.

View pagelab's full-sized avatar
🚀

Márcio Duarte pagelab

🚀
View GitHub Profile
@pagelab
pagelab / preview.html
Created April 30, 2026 16:08
Email preview text
<html>
<head>
<title></title>
<style type="text/css">/* ... */
/*--- Preheader declaration in style block in addition to inline for Outlook */
.preheader { display:none !important; visibility:hidden; opacity:0; color:transparent; height:0; width:0; }
</style>
</head>
<body>
<p><span class="preheader" style="display: none !important; visibility: hidden; opacity: 0; color: transparent; height: 0; width: 0;"><span class="preheader" style="display: none !important; visibility: hidden; opacity: 0; color: transparent; height: 0; width: 0;">&nbsp;&nbsp;</span>Descubra. Cortesia minha &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏ &zwnj; ͏</span>
@pagelab
pagelab / WordPress Translation Glossaries.md
Last active April 13, 2026 14:35
WordPress Translations Glossaries – Complete List
@pagelab
pagelab / sync-skills.sh
Last active April 6, 2026 16:35
Sync agent skills
# --- Sync skill directories from .agents/skills to .copilot/skills ---
COPILOT_SKILLS="/Users/mac/.copilot/skills"
AGENTS_SKILLS="/Users/mac/.agents/skills"
if [ -d "$AGENTS_SKILLS" ]; then
for skill_dir in "$AGENTS_SKILLS"/*/; do
[ -d "$skill_dir" ] || continue
dir_name=$(basename "$skill_dir")
[[ "$dir_name" == .* ]] && continue
@pagelab
pagelab / blueprint.json
Last active January 28, 2026 21:00
WordPress Blueprint – version 4.6.30
{
"landingPage": "/wp-admin",
"preferredVersions": {
"wp": "https://playground.wordpress.net/plugin-proxy.php?url=https://wordpress.org/wordpress-4.6.30.zip",
"php": "7.4"
},
"features": {
"networking": true
},
"steps": [
@pagelab
pagelab / gsd.sh
Created January 20, 2026 21:26
Sync all Claude Code commands with Google Antigravity workflows
# --- Sync commands from all subfolders in .claude/commands ---
GEMINI_WORKFLOWS="/Users/mac/.gemini/antigravity/global_workflows"
CLAUDE_COMMANDS="/Users/mac/.claude/commands"
if [ -d "$CLAUDE_COMMANDS" ]; then
# Iterate through each subfolder (1 level deep)
for cmd_dir in "$CLAUDE_COMMANDS"/*/; do
[ -d "$cmd_dir" ] || continue
prefix=$(basename "$cmd_dir")
@pagelab
pagelab / AGENTS.MD
Created November 24, 2025 22:35 — forked from lukecav/AGENTS.MD
AGENTS.MD — Codex Playbook for Building a WordPress Plugin

AGENTS.md — Codex Playbook for Building a WordPress Plugin

A precise, no-nonsense blueprint for orchestrating autonomous and semi-autonomous coding agents to plan, scaffold, implement, test, and ship a production‑grade WordPress plugin.


0) Purpose & Scope

This document defines the agents, tools, workflows, constraints, and acceptance criteria for using an agentic coding system ("Codex") to create and maintain a WordPress plugin. It is optimized for real, shippable code, not demos.

@pagelab
pagelab / style.css
Last active April 28, 2025 00:17
Styles for the provided mockup
/**
*
* Styles matching the provided website mockup.
*
* NOTES:
* – We'll use WP's native custom properties wherever possible.
* – The usage of `!important`, although a bad practice, is unavoidable in the situations it was used.
*/
/* Define custom properties where there's no equivalent in WordPress. */
@pagelab
pagelab / multisite.branda.2025-04-27.1745721211.json
Created April 27, 2025 02:54
Branda site status page settings
{
"name": "Branda",
"url": "https:\/\/wpmudev.com\/plugins\/ultimate-branding",
"version": "3.4.23",
"timestamp": 1745721211,
"date": "2025-04-27T02:33:31+00:00",
"activate_module": {
"front-end\/site-status-page.php": "yes"
},
"modules": {
@pagelab
pagelab / taxonomy-registration.php
Created April 26, 2025 02:55
Custom taxonomy registration code for the “Books” Custom Post Type.
<?php // Ignore this line if your functions.php already include it.
function register_book_author_taxonomy() {
$labels = array(
'name' => 'Book Authors',
'singular_name' => 'Book Author',
'menu_name' => 'Book Authors',
'all_items' => 'All Book Authors',
'edit_item' => 'Edit Book Author',
'view_item' => 'View Book Author',
'update_item' => 'Update Book Author',
@pagelab
pagelab / shortcode-fix.php
Created April 26, 2025 02:06
New shortcode with corrections.
<?php
// Add Shortcode
function subform() {
// Get the current user
$current_user = wp_get_current_user();
// Check if user is logged in and get the nickname
if ($current_user->exists()) {
$user_display_name = $current_user->nickname;
// If nickname is empty, fall back to display_name