WC_Admin_Addons::output_empty()public staticWC 1.0

Output HTML for a promotion action if data couldn't be fetched.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Admin_Addons::output_empty( $message );
$message(string)
Error message.
Default: ''

Code of WC_Admin_Addons::output_empty() WC 6.7.0

<?php
public static function output_empty( $message = '' ) {
	?>
	<div class="wc-addons__empty">
		<h2><?php echo wp_kses_post( __( 'Oh no! We\'re having trouble connecting to the extensions catalog right now.', 'woocommerce' ) ); ?></h2>
		<?php if ( ! empty( $message ) ) : ?>
			<p><?php echo esc_html( $message ); ?></p>
		<?php endif; ?>
		<p>
			<?php
			printf(
				wp_kses_post(
					/* translators: a url */
					__(
						'To start growing your business, head over to <a href="%s">WooCommerce.com</a>, where you\'ll find the most popular WooCommerce extensions.',
						'woocommerce'
					)
				),
				'https://woocommerce.com/products/?utm_source=extensionsscreen&utm_medium=product&utm_campaign=connectionerror'
			);
			?>
		</p>
	</div>
	<?php
}