PHPackages                             plugin/yard-gutenberg - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. plugin/yard-gutenberg

ActiveWordpress-plugin

plugin/yard-gutenberg
=====================

A collection of blocks for the WordPress Gutenberg editor.

v1.5.5(1mo ago)21.9k↓28.3%[11 PRs](https://github.com/yardinternet/plugin-yard-gutenberg/pulls)EUPL-1.2JavaScriptPHP &gt;=7.4CI failing

Since May 23Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/yardinternet/plugin-yard-gutenberg)[ Packagist](https://packagist.org/packages/plugin/yard-gutenberg)[ RSS](/packages/plugin-yard-gutenberg/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (7)Versions (66)Used By (0)

WP Gutenberg
============

[](#wp-gutenberg)

A WordPress plugin with a collection of blocks and features for the Gutenberg editor.

👷‍♀️ Development
----------------

[](#‍️-development)

1. Run `nvm use` to automatically use the correct version of Node.js
2. Run `npm install` to install dependencies
3. Run `npm start` for local development

🚀 Release
---------

[](#-release)

TODO: automate this

1. Update plugin versions and run `npm run build` to build assets. Commit and push to remote.
2. Add tag `git tag v0.1.0` and push to remote `git push origin v0.1.0`

PHP Hooks
---------

[](#php-hooks)

### `yard::gutenberg/allowed-blocks`

[](#yardgutenbergallowed-blocks)

By default, all blocks are registered. Use this filter to register only the allowed blocks. The example below lists every available block:

```
add_filter('yard::gutenberg/allowed-blocks', fn () => [
 'collapse',
 'collapse-item',
 'counting-number',
 'facetwp',
 'icon',
 'iconlist',
 'iconlist-item',
 'slide',
 'slider',
 'tabs',
 'tabs-item',
]);
```

### `yard::gutenberg/allowed-core-blocks`

[](#yardgutenbergallowed-core-blocks)

Overwrite the allowed (core) blocks.

```
add_filter('yard::gutenberg/allowed-core-blocks', $this->registerCoreBlocks(...), 10, 1);

public function registerCoreBlocks($initialAllowedBlocks): array
{
 $additionalBlocks = collect([
  // 'core/search',
 ]);

 $excludeBlocks = collect([
  // 'core/post-featured-image',
 ]);

 return collect($initialAllowedBlocks)
  ->merge($additionalBlocks)
  ->reject(fn ($block) => $excludeBlocks->contains($block))
  ->all();
}
```

### `yard::gutenberg/allowed-blocks-whitelisted-prefixes`

[](#yardgutenbergallowed-blocks-whitelisted-prefixes)

By default, all blocks are registered. Use this filter to register only the allowed blocks with a specific prefix. The example adds the `tribe` prefix:

```
add_filter('yard::gutenberg/allowed-blocks-whitelisted-prefixes', fn ($prefixes) => [
 ...$prefixes,
 'tribe',
] );
```

JavaScript Hooks
----------------

[](#javascript-hooks)

### `yard.default-unused-styles`

[](#yarddefault-unused-styles)

Change the default unregistered styles: `/src/Hooks/resources/js/default-block-styles.js`:

```
import { addFilter } from '@wordpress/hooks';

addFilter(
 'yard.default-unused-styles',
 'sage/default-unused-styles',
 (styles) => {
  return styles.map((item) => {
   // Remove 'fill' style from the array, so that it works again
   if (item.block === 'core/button') {
    return {
     ...item,
     styles: item.styles.filter(style => style !== 'fill')
    };
   }
   return item;
  });
 }
);
```

### `yard.default-registered-variations`

[](#yarddefault-registered-variations)

Remove specific variations: `/src/Hooks/resources/js/default-block-variations.js`:

```
import { addFilter } from '@wordpress/hooks';

// Remove specific variations from the registered list
addFilter(
 'yard.default-registered-variations',
 'your-project/remove-registered-variations',
 (variations) => {
  return variations.filter((item) => {
   // Remove the custom spacer variation
   if (item.block === 'core/spacer' && item.name === 'spacer-with-steps') {
    return false; // Exclude this variation
   }
   // Keep all other variations
   return true;
  });
 }
);
```

Or change an existing variation:

```
addFilter(
 'yard.default-registered-variations',
 'your-project/modify-registered-variations',
 (variations) => {
  return variations.map((item) => {
   // Change the height attribute for the spacer variation
   if (item.block === 'core/spacer' && item.name === 'spacer-with-steps') {
    return {
     ...item,
     attributes: {
      ...item.attributes,
      height: 'var:preset|spacing|9', // New height value
     },
    };
   }
   return item;
  });
 }
);
```

### `yard.default-unused-variations`

[](#yarddefault-unused-variations)

Remove a default unregistered variations so that it works again: `/src/Hooks/resources/js/default-block-variations.js`:

```
import { addFilter } from '@wordpress/hooks';

addFilter(
 'yard.default-unused-variations',
 'your-project/remove-unused-variations',
 (variations) => {
  return variations.filter((item) => {
   if (item.block === 'core/group' && item.variation === 'group-row') {
    return false; // Remove this variation so that it works again
   }
   // Keep all other variations in the unused list
   return true;
  });
 }
);
```

About us
--------

[](#about-us)

[![banner](https://raw.githubusercontent.com/yardinternet/.github/refs/heads/main/profile/assets/small-banner-github.svg)](https://www.yard.nl/werken-bij/)

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance89

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~2 days

Total

50

Last Release

53d ago

Major Versions

v0.2.2 → v1.0.02024-11-11

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/62775?v=4)[Anton Zhuravsky](/maintainers/Yard)[@yard](https://github.com/yard)

---

Top Contributors

[![laravdiemen](https://avatars.githubusercontent.com/u/80510718?v=4)](https://github.com/laravdiemen "laravdiemen (129 commits)")[![YvetteNikolov](https://avatars.githubusercontent.com/u/48315669?v=4)](https://github.com/YvetteNikolov "YvetteNikolov (80 commits)")[![SimonvanWijhe](https://avatars.githubusercontent.com/u/41121933?v=4)](https://github.com/SimonvanWijhe "SimonvanWijhe (5 commits)")[![FreakyWizard](https://avatars.githubusercontent.com/u/114140418?v=4)](https://github.com/FreakyWizard "FreakyWizard (5 commits)")[![ictbeheer](https://avatars.githubusercontent.com/u/14947039?v=4)](https://github.com/ictbeheer "ictbeheer (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![WybeBosch](https://avatars.githubusercontent.com/u/40889930?v=4)](https://github.com/WybeBosch "WybeBosch (3 commits)")[![rivanuff](https://avatars.githubusercontent.com/u/16398970?v=4)](https://github.com/rivanuff "rivanuff (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/plugin-yard-gutenberg/health.svg)

```
[![Health](https://phpackages.com/badges/plugin-yard-gutenberg/health.svg)](https://phpackages.com/packages/plugin-yard-gutenberg)
```

###  Alternatives

[phpsword/sword-bundle

Modern WordPress development with Symfony

1388.8k](/packages/phpsword-sword-bundle)[ronilaukkarinen/dudestack

A modern WordPress stack

1131.2k](/packages/ronilaukkarinen-dudestack)[yard/wp-user-roles

An Acorn package for managing user roles in WordPress.

114.4k](/packages/yard-wp-user-roles)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
