Automattic\WooCommerce\Internal\Admin\Orders

ListTable::render_blank_state()publicWC 1.0

Renders advice in the event that no orders exist yet.

Метод класса: ListTable{}

Return

null. Nothing.

Usage

$ListTable = new ListTable();
$ListTable->render_blank_state(): void;

Код ListTable::render_blank_state() WC 7.1.0

<?php
public function render_blank_state(): void {
	?>
		<div class="woocommerce-BlankState">

			<h2 class="woocommerce-BlankState-message">
				<?php esc_html_e( 'When you receive a new order, it will appear here.', 'woocommerce' ); ?>
			</h2>

			<div class="woocommerce-BlankState-buttons">
				<a class="woocommerce-BlankState-cta button-primary button" target="_blank" href="https://docs.woocommerce.com/document/managing-orders/?utm_source=blankslate&utm_medium=product&utm_content=ordersdoc&utm_campaign=woocommerceplugin"><?php esc_html_e( 'Learn more about orders', 'woocommerce' ); ?></a>
			</div>

		<?php
		/**
		 * Renders after the 'blank state' message for the order list table has rendered.
		 *
		 * @since 6.6.1
		 */
		do_action( 'wc_marketplace_suggestions_orders_empty_state' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingSinceComment
		?>

		</div>
	<?php
}