Admin_UI::list_table_import_status( array $views = array() )

Summary

Add the last import date at the end of the views above the products list table. While not exactly a view, it’s a reasonable place to inject the status into the UI.


Parameters

$views

(array) (Optional)

Default value: array()


Return

(array)


Source

File: src/BigCommerce/Post_Types/Product/Admin_UI.php

	public function list_table_import_status( $views = [] ) {
		$last_import = $this->last_import_date();
		if ( $last_import ) {
			$views[ 'bc-import-status' ] = sprintf(
				__( 'Last Import %s', 'bigcommerce' ),
				$last_import
			);
		}

		return $views;
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.