Is there a way to perform automated actions when people sign up to events based on their profile info?

For example: - if someone has already attended an event in the last month, put them on the waiting list - if someone belongs to a particular organisation, automatically mark them as registered

I'm using Civi 4.2.27 on Wordpress.

1 Answer 1


You can write a plugin that hooks into civicrm_post that will allow you to do anything you like with the newly-registered contact.

add_action( 'civicrm_post', 'my_do_stuff_after_registration', 10, 4 );
function my_do_stuff_after_registration( $op, $objectName, $objectId, $objectRef ) {
    if ( $op != 'create' ) return;
    if ( $objectName != 'Participant' ) return;
    $contact_id = $objectRef['contact_id'];
    // ... do anything you like with this contact

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.