GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bacoords/example-php-block: Register WordPress PHP-only blocks (includes Agent Skills)

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude/skills/php-block
.claude/skills/php-block
 
 
basic-block
basic-block
 
 
woo-block
woo-block
 
 
CLAUDE.md
CLAUDE.md
 
 
example-php-block.php
example-php-block.php
 
 
readme.md
readme.md
 
 

Repository files navigation

Example PHP Block

Demonstrates PHP-only block registration in WordPress 7.0+ using autoRegister.

Blocks

  • Hello Pattern (basic-block/) - Simple block with custom attributes and CSS
  • Store Products Preview (woo-block/) - WooCommerce products with cart status via Store API

Claude Code Skill

This plugin includes a /php-block skill for Claude Code that teaches best practices for PHP-only block development:

  • Block structure and registration pattern
  • How to properly load CSS and JavaScript
  • Why JavaScript only works on frontend (not in editor)
  • Attribute types and auto-generated controls
  • Block supports

Run /php-block in Claude Code when working on PHP-only blocks.

About

Register WordPress PHP-only blocks (includes Agent Skills)

Resources

Readme
Activity

Stars

14 stars

Watchers

2 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.