WordPress at Your Fingertips
function is not described

WC_Admin_Addons::output_featured() private WC 1.0

Handles the outputting of featured page

{} It's a method of the class: WC_Admin_Addons{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Admin_Addons::output_featured( $blocks );
$blocks(array) (required)
Featured page's blocks.

Code of WC_Admin_Addons::output_featured() WC 5.9.0

private static function output_featured( $blocks ) {
	foreach ( $blocks as $block ) {
		$block_type = $block->type ?? null;
		switch ( $block_type ) {
			case 'group':
				self::output_group( $block );
				break;
			case 'banner':
				self::output_banner( $block );
				break;
		}
	}
}