WC_Admin_Addons::output_banner_block()public staticWC 1.0

Deprecated from version 5.9.0. It is no longer supported and can be removed in future releases. Use d in In-App Marketplace instead.

Handles the outputting of a banner block.

Method of the class: WC_Admin_Addons{}

No Hooks.


null. Nothing.


$result = WC_Admin_Addons::output_banner_block( $block );
$block(object) (required)
Banner data.


Deprecated since 5.9.0 No longer used in In-App Marketplace

WC_Admin_Addons::output_banner_block() code WC 7.5.1

public static function output_banner_block( $block ) {
	<div class="addons-banner-block">
		<h1><?php echo esc_html( $block->title ); ?></h1>
		<p><?php echo esc_html( $block->description ); ?></p>
		<div class="addons-banner-block-items">
			<?php foreach ( $block->items as $item ) : ?>
				<?php if ( self::show_extension( $item ) ) : ?>
					<div class="addons-banner-block-item">
						<div class="addons-banner-block-item-icon">
							<img class="addons-img" src="<?php echo esc_url( $item->image ); ?>" />
						<div class="addons-banner-block-item-content">
							<h3><?php echo esc_html( $item->title ); ?></h3>
							<p><?php echo esc_html( $item->description ); ?></p>
				<?php endif; ?>
			<?php endforeach; ?>