# extendify/3.2.1/src/Agent/lib/register-blocks.js

Extendify, version 3.2.1. 9 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.1/code/src/Agent/lib/register-blocks.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.1/raw/src/Agent/lib/register-blocks.js
- Modified: 2026-08-12T16:23:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.2.1/code/src/Agent/lib/register-blocks.js#L10-L20`.

```javascript
import { getBlockTypes } from '@wordpress/blocks';

// Lazy import so always-loaded bundles don't pull in the whole block editor.
export const ensureCoreBlocksRegistered = async () => {
	if (getBlockTypes().length) return;
	const { registerCoreBlocks } = await import('@wordpress/block-library');
	registerCoreBlocks();
};

```
