Posted: May 6, 2014 at 12:46 pm
|
If I join an event should I be automatically added to wordpress users or is there something I need to do for this to happen? Thx |
Hi Jeremy, Event Espresso 3 does not do this on its own but you can do this by using some code like this: https://gist.github.com/Apina/5576163 We recommend adding this to a site specific plugin: http://ottopress.com/2011/creating-a-site-specific-snippets-plugin/ Cheers – |
|
|
Hi Lorenzo Thanks for the information. I did as suggested. Do I add this to the plugins for the site or is there a plugins folder within espresso? The reason I ask is that I added to contents/plugins for wordpress and now no emails are sent out for the user at all. They are recorded on espresso users but not on wordpress. Also I do not get a user activate email at all. Any ideas what I can do next? Thanks |
|
I have redone the file and now get the message: Fatal error: Cannot redeclare espresso_create_wp_user() (previously declared in /home/hearts/public_html/wp-content/plugins/heart-tours/heart-tours.php:7) in /home/hearts/public_html/wp-content/plugins/heart-tours/heart-tours.php on line 29 For your information I have added code below: <pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”><?php // Generate the password and create the user // Set the users details // Set the roleadd_action('action_hook_espresso_save_attendee_data','espresso_create_wp_user', 10, 1); // Generate the password and create the user // Set the users details // Set the role // Email the user } // end if // Email the user } // end if |
|
Hi, The snippet should go into either the themes functions.php or to wp-content/uploads/espresso/custom_functions.php (you may need to make this file). Here is an alternative version of the above, please read the notes on it https://gist.github.com/Apina/9596012 The fatal error you have received is because you have the function in two places and the can be only one. |
The support post ‘Event registration = wordpress registration?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.