# top-10/4.4.3/includes/frontend/blocks/src/post-count/index.js

WebberZone Top 10 — Popular Posts, version 4.4.3. 18 lines.

- Page: https://pluginprobe.com/plugins/top-10/4.4.3/code/includes/frontend/blocks/src/post-count/index.js
- Raw: https://pluginprobe.com/plugins/top-10/4.4.3/raw/includes/frontend/blocks/src/post-count/index.js
- Modified: 2026-05-28T14:37:10+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/top-10/4.4.3/code/includes/frontend/blocks/src/post-count/index.js#L10-L20`.

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

import './style.scss';
import { countIcon } from './components/icons';
import Edit from './edit';
import metadata from './block.json';

/**
 * Every block starts by registering a new block type definition.
 *
 * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
 */
registerBlockType(metadata.name, {
	...metadata,
	icon: countIcon,
	edit: Edit,
});

```
