WC_Admin_Addons::output_small_light_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 small light block.

Method of the class: WC_Admin_Addons{}

No Hooks.


null. Ничего (null).


$result = WC_Admin_Addons::output_small_light_block( $block );
$block(object) (required)
Block data.


Deprecated since 5.9.0 No longer used in In-App Marketplace

WC_Admin_Addons::output_small_light_block() code WC 8.3.0

public static function output_small_light_block( $block ) {
	<div class="addons-small-light-block">
		<img class="addons-img" src="<?php echo esc_url( $block->image ); ?>" />
		<div class="addons-small-light-block-content">
			<h1><?php echo esc_html( $block->title ); ?></h1>
			<p><?php echo esc_html( $block->description ); ?></p>
			<div class="addons-small-light-block-buttons">
				<?php foreach ( $block->buttons as $button ) : ?>
				<?php endforeach; ?>