Skip to content
This repository was archived by the owner on Jul 7, 2024. It is now read-only.

Filter hooks not workingΒ #31

@iaincoughtrie

Description

@iaincoughtrie

Attempting to update the properties sent to Segment via any of the documented filters does not appear to be working.

Basic example:

add_filter( 'segment_for_wp_change_event_properties', 'modify_event_properties', 10, 3 );

function modify_event_properties( $properties, $action, $data ) {
	$properties['custom_property'] = 'Custom Value';

	return $properties;
}

This does not result in the custom property being logged with the events in Segment.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions