A WordPress-centric search engine for devs and theme authors



register_block_core_social_link ›

Sincen/a
Deprecatedn/a
register_block_core_social_link ( No parameters )
Defined at:
Codex:

Registers the `core/social-link` blocks.



Source

function register_block_core_social_link() {
	$path     = __DIR__ . '/social-link/block.json';
	$metadata = json_decode( file_get_contents( $path ), true );

	register_block_type(
		$metadata['name'],
		array_merge(
			$metadata,
			array(
				'render_callback' => 'render_block_core_social_link',
			)
		)
	);
}