Automattic\WooCommerce\Internal\Admin\Orders
ListTable::render_blank_state()
Renders advice in the event that no orders exist yet.
Method of the class: ListTable{}
Hooks from the method
Return
null
. Nothing (null).
Usage
$ListTable = new ListTable(); $ListTable->render_blank_state(): void;
ListTable::render_blank_state() ListTable::render blank state code WC 9.7.1
<?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://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 }