WC_Admin_List_Table_Products::render_blank_state()
Render blank state.
Method of the class: WC_Admin_List_Table_Products{}
Hooks from the method
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->render_blank_state();
WC_Admin_List_Table_Products::render_blank_state() WC Admin List Table Products::render blank state code WC 9.7.1
protected function render_blank_state() { echo '<div class="woocommerce-BlankState">'; echo '<h2 class="woocommerce-BlankState-message">' . esc_html__( 'Ready to start selling something awesome?', 'woocommerce' ) . '</h2>'; echo '<div class="woocommerce-BlankState-buttons">'; echo '<a class="woocommerce-BlankState-cta button-primary button" href="' . esc_url( admin_url( 'post-new.php?post_type=product&tutorial=true' ) ) . '">' . esc_html__( 'Create Product', 'woocommerce' ) . '</a>'; echo '<a class="woocommerce-BlankState-cta button" href="' . esc_url( admin_url( 'edit.php?post_type=product&page=product_importer' ) ) . '">' . esc_html__( 'Start Import', 'woocommerce' ) . '</a>'; echo '</div>'; do_action( 'wc_marketplace_suggestions_products_empty_state' ); echo '</div>'; }