Automattic\WooCommerce\EmailEditor\Integrations\Core\Renderer\Blocks

Social_Link{}WC 1.0└─ Abstract_Block_Renderer

Renders a social link block.

No Hooks.

Usage

$Social_Link = new Social_Link();
// use class methods

Methods

  1. protected render_content( $block_content, array $parsed_block, Rendering_Context $rendering_context )

Social_Link{} code WC 10.5.0

class Social_Link extends Abstract_Block_Renderer {

	/**
	 * Renders the block content.
	 *
	 * @param string            $block_content Block content.
	 * @param array             $parsed_block Parsed block.
	 * @param Rendering_Context $rendering_context Rendering context.
	 * @return string
	 */
	protected function render_content( $block_content, array $parsed_block, Rendering_Context $rendering_context ): string {
		// We are not using this because the blocks are rendered in the Social_Links block class.
		return $block_content;
	}
}