Automattic\WooCommerce\Admin\Features\OnboardingTasks

TaskList::prefix_event()publicWC 1.0

Prefix event for track event naming.

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

No Hooks.

Return

String.

Usage

$TaskList = new TaskList();
$TaskList->prefix_event( $event_name );
$event_name(string) (required)
Event name.

Code of TaskList::prefix_event() WC 7.1.0

public function prefix_event( $event_name ) {
	if ( null !== $this->event_prefix ) {
		return $this->event_prefix . $event_name;
	}
	return $this->get_list_id() . '_tasklist_' . $event_name;
}