# top-10/4.5.2/includes/frontend/blocks/src/post-count/render.php

WebberZone Top 10 — Popular Posts, version 4.5.2. 22 lines.

- Page: https://pluginprobe.com/plugins/top-10/4.5.2/code/includes/frontend/blocks/src/post-count/render.php
- Raw: https://pluginprobe.com/plugins/top-10/4.5.2/raw/includes/frontend/blocks/src/post-count/render.php
- Modified: 2026-10-08T02:44:28+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.5.2/code/includes/frontend/blocks/src/post-count/render.php#L10-L20`.

```php
<?php
/**
 * Server-side renderer for the Post Count block.
 *
 * @package WebberZone\Top_Ten
 */

if ( ! isset( $attributes ) || ! is_array( $attributes ) ) {
	$attributes = array();
}

if ( ! isset( $content ) ) {
	$content = '';
}

if ( ! isset( $block ) ) {
	$block = null;
}

// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- The block renderer returns escaped markup.
echo \WebberZone\Top_Ten\Frontend\Blocks\Blocks::render_block_post_count( $attributes, $content, $block );

```
