Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CiviCRM Participant not create when WP-Participant is created programmatically #45

Open
jbonlinea opened this issue Nov 18, 2022 · 2 comments
Labels

Comments

@jbonlinea
Copy link

jbonlinea commented Nov 18, 2022

Hi there,

The more I dig into the "new" feature of this plug-in, the more I like it.

I'm not sure if this is something you may consider to address, but it would be great if yes :)

I just realise that

  • when I create a WP-Participant from wp-admin, the synced Civi-Participant is created as well : awesome
  • when I create a WP-Participant programatically (with a third party form), then the Civi-Participant is not created. I need to edit the WP-Participant so that the Civi-Participant is created.

I guess it might be complicated to "listen" for participant post creation when it's done programatically, and trigger the appropriate sync function, but that a bit sad that is is not happening !

Ok I might use an ACFE Form and the participant action, or not because then I would need to programmatically do many things that I do "out of the box" in my form.

Cheers

@jbonlinea jbonlinea changed the title Civi-Participant not create when WP-Participant is created programmatically [Feature] [integration] Civi-Participant not create when WP-Participant is created programmatically Nov 18, 2022
@jbonlinea jbonlinea changed the title [Feature] [integration] Civi-Participant not create when WP-Participant is created programmatically [Integration] [Incomplete Feature] Civi-Participant not create when WP-Participant is created programmatically Nov 18, 2022
@christianwach
Copy link
Owner

Thanks for the report - as with all your feature requests @jbonlinea they need resources in order to implement.

@christianwach christianwach changed the title [Integration] [Incomplete Feature] Civi-Participant not create when WP-Participant is created programmatically CiviCRM Participant not create when WP-Participant is created programmatically Jan 19, 2023
@jbonlinea
Copy link
Author

I know I've submited a lot of thing regarding participant :)

One "easy" way to solve this issue might be to programmatically trig the sync of the participant just after creation.

On the wp side, we may use the hook wp_insert_post but I don't know how to programatically trig wp-civi-sync for a given post id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants