Automattic\WooCommerce\Internal\Admin

ActivityPanels::add_user_data_fields()publicWC 1.0

Adds fields so that we can store activity panel last read and open times.

Method of the class: ActivityPanels{}

No Hooks.

Return

Array.

Usage

$ActivityPanels = new ActivityPanels();
$ActivityPanels->add_user_data_fields( $user_data_fields );
$user_data_fields(array) (required)
User data fields.

ActivityPanels::add_user_data_fields() code WC 7.1.0

public function add_user_data_fields( $user_data_fields ) {
	return array_merge(
		$user_data_fields,
		array(
			'activity_panel_inbox_last_read',
			'activity_panel_reviews_last_read',
		)
	);
}