WC_Admin_List_Table_Products::render_blank_state()protectedWC 1.0

Render blank state.

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

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->render_blank_state();

Code of WC_Admin_List_Table_Products::render_blank_state() WC 6.7.0

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>';
}