Skip to content

Repository files navigation

WordPress Block Type Example

This is designed to teach the basics of WordPress Gutenberg Block Type Development.

This was made for the WordCamp Las Vegas 2019 - "Plugin Development in a Block Editor World"

Google Slides

Developed and presented by @OGProgrammer

See more at the official site -> https://wordpress.org/gutenberg/

Instructions

To install this, first install docker & docker-compose

Run docker-compose up -d to bring up the wordpress container with the example plugin code.

To shut it all down , just run docker-compose down to shut it all down.

To jump into the terminal for the container, run docker-compose exec wordpress bash

Examples

The manual examples can be found in custom-wp-block-type. You'll find a few dynamic blocks and one static block example.

The other example uses create-guten-block, I ran npx create-guten-block my-autogen-block in the root of the project here to generate the autogen example.

Debugging

Use normal wp-config.php settings and tail logs with docker-compose logs -f

More resources

Here are other resources that helped out:

Video

Tools

Documentation

Tutorial

Attribution

Some of the examples are copied/derived from the following:

Releases

Packages

Used by

Contributors

Languages