WP Manifestindependent plugin directory
manifest / editor / metablock

Metablock

A block to show the value of a custom field

★ 6stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/imaginarymachines/metablock/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Installation

  • Git clone:
    • git clone git@github.com:shelob9/joshmetablock.git
  • Install javascript dependencies
    • yarn

Create Installable ZIP File

  • npx plugin-machine plugin zip

Working With JavaScript

  • Build JS/CSS
    • yarn build
  • Start JS/CSS for development
    • yarn start
  • Test changed files
    • yarn test --watch
  • Test all files once
    • yarn test
    • yarn test --ci

Local Development Environment

A docker-compose-based local development environment is provided.

  • Start server
    • docker-compose up -d
  • Acess Site
  • WP CLI
    • Run any WP CLI command in container:
      • docker-compose run wpcli wp ...
    • Setup site with WP CLI
      • docker-compose run wpcli wp core install --url=http://localhost:6091 --title="Metablock" --admin_user=admin0 --admin_email=something@example.com
      • docker-compose run wpcli wp user create admin admin@example.com --role=administrator --user_pass=pass