This filter is run during an Event Tickets registration, after WP Fusion has created or updated an attendee in your CRM, and before tags are applied.

It can be used to modify the tags that are applied to an event attendee.

To use the code examples below, add them to your active theme’s functions.php file.


  • $apply_tags: (array) This is an array of tag IDs to be applied in your CRM.
  • $attendee_id: (int) The Event Tickets attendee ID.
  • $event_id: (int) The Event Tickets event ID.
  • $ticket_id: (int) The Event Tickets ticket ID.


#Apply tags based on event meta

This example checks the date for the event, and if the date is less than one day in the future, applies an additional tag “Late Registration”.

function apply_late_registration_tags( $apply_tags, $attendee_id, $event_id, $ticket_id ) {

	$event_date = get_post_meta( $event_id, '_EventStartDate', true );

	if ( strtotime( $event_date ) < ( time() + DAY_IN_SECONDS ) ) {

		$apply_tags[] = wpf_get_tag_id( 'Late Registration' );


	return $apply_tags;


add_filter( 'wpf_event_tickets_apply_tags', 'apply_late_registration_tags', 10, 4 );

Was this helpful?

Our Black Friday Sale is Here! 🎉

Take advantage of the biggest discount we ever offer. Save 30% off new licenses and upgrades.
Sorry, this offer has expired.

Valid until Monday November 28th. See Terms and Conditions