wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



register_block_core_social_link › WordPress Function

Dan/a
Deprecaton/a
register_block_core_social_link ( Nessun parametro )
Definito a:
Codex:

Registers the `core/social-link` blocks.



Sorgenti

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',
			)
		)
	);
}