# jetpack/16.3-a.1/extensions/blocks/sharing-buttons/render.php

Jetpack – WP Security, Backup, Speed, &amp; Growth, version 16.3-a.1. 35 lines.

- Page: https://pluginprobe.com/plugins/jetpack/16.3-a.1/code/extensions/blocks/sharing-buttons/render.php
- Raw: https://pluginprobe.com/plugins/jetpack/16.3-a.1/raw/extensions/blocks/sharing-buttons/render.php
- Modified: 2026-06-25T11:57:08+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/jetpack/16.3-a.1/code/extensions/blocks/sharing-buttons/render.php#L10-L20`.

```php
<?php
/**
 * Sharing Buttons block render implementation.
 *
 * Loaded lazily from sharing-buttons.php only when the block is rendered, to keep
 * the render body out of the eager front-end PHP/opcache footprint.
 *
 * @package automattic/jetpack
 */

namespace Automattic\Jetpack\Extensions\Sharing_Buttons;

use Automattic\Jetpack\Status\Request;

if ( ! defined( 'ABSPATH' ) ) {
	exit( 0 );
}

/**
 * Sharing Buttons block registration/dependency declaration.
 *
 * @param array  $attr    Array containing the Sharing Buttons block attributes.
 * @param string $content String containing the Sharing Buttons block content.
 *
 * @return string
 */
function render_block_implementation( $attr, $content ) {
	// Render nothing in other contexts than frontend (i.e. feed, emails, API, etc.).
	if ( ! Request::is_frontend() ) {
		return '';
	}

	return $content;
}

```
