WooCommerce Code Reference

TaskTraits

TaskTraits class.

Table of Contents

get_list_id()  : string
Get the task list ID.
record_tracks_event()  : string
Record a tracks event with the prefixed event name.

Methods

record_tracks_event()

Record a tracks event with the prefixed event name.

public record_tracks_event(string $event_name[, array<string|int, mixed> $args = array() ]) : string
Parameters
$event_name : string

Event name.

$args : array<string|int, mixed> = array()

Array of tracks arguments.

Return values
stringPrefixed event name.