WordPress at Your Fingertips
function is not described

WC_Admin_Addons::output_featured_sections() public WC 1.0

Handles the outputting of featured sections

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Admin_Addons::output_featured_sections( $sections );
$sections(array) (required)
Section data.

Code of WC_Admin_Addons::output_featured_sections() WC 5.9.0

public static function output_featured_sections( $sections ) {
	foreach ( $sections as $section ) {
		switch ( $section->module ) {
			case 'banner_block':
				self::output_banner_block( $section );
				break;
			case 'column_start':
				self::output_column( $section );
				break;
			case 'column_end':
				self::output_column( $section );
				break;
			case 'column_block':
				self::output_column_block( $section );
				break;
			case 'small_light_block':
				self::output_small_light_block( $section );
				break;
			case 'small_dark_block':
				self::output_small_dark_block( $section );
				break;
			case 'wcs_banner_block':
				self::output_wcs_banner_block( (array) $section );
				break;
			case 'wcpay_banner_block':
				self::output_wcpay_banner_block( (array) $section );
				break;
			case 'promotion_block':
				self::output_promotion_block( (array) $section );
				break;
		}
	}
}