Skip to content

bacoords/example-php-block

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages