diff --git a/modules/woocommerce-analytics/classes/wp-woocommerce-analytics-universal.php b/modules/woocommerce-analytics/classes/wp-woocommerce-analytics-universal.php index c0eb78e32ccb4..0687d93accac4 100644 --- a/modules/woocommerce-analytics/classes/wp-woocommerce-analytics-universal.php +++ b/modules/woocommerce-analytics/classes/wp-woocommerce-analytics-universal.php @@ -93,9 +93,9 @@ public function get_common_properties() { * * @param string $event_name The name of the event to record. * @param integer $product_id The id of the product relating to the event. - * @param array $properties Array of key => value event properties. + * @param array $properties Optional array of (key => value) event properties. */ - public function record_event( $event_name, $product_id, $properties ) { + public function record_event( $event_name, $product_id, $properties = array() ) { $product = wc_get_product( $product_id ); if ( ! $product instanceof WC_Product ) { return;