WC_Admin_List_Table::list_table_primary_column()publicWC 1.0

Set list table primary column.

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

No Hooks.

Return

String.

Usage

$WC_Admin_List_Table = new WC_Admin_List_Table();
$WC_Admin_List_Table->list_table_primary_column( $default, $screen_id );
$default(string) (required)
Default value.
$screen_id(string) (required)
Current screen ID.

Code of WC_Admin_List_Table::list_table_primary_column() WC 6.7.0

public function list_table_primary_column( $default, $screen_id ) {
	if ( 'edit-' . $this->list_table_type === $screen_id && $this->get_primary_column() ) {
		return $this->get_primary_column();
	}
	return $default;
}