WC_Admin_Addons::output_column_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 column block.

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

No Hooks.


null. Nothing.


$result = WC_Admin_Addons::output_column_block( $block );
$block(object) (required)
Column block data.


Deprecated Since 5.9.0 No longer used in In-App Marketplace

Code of WC_Admin_Addons::output_column_block() WC 6.7.0

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