Support

Home Forums WP User Integration Feature request: add Custom Capabilities when new registration

Feature request: add Custom Capabilities when new registration

Posted: November 5, 2017 at 3:41 pm

Viewing 1 reply thread


HIL Tennis

November 5, 2017 at 3:41 pm

Seems like it’s only possoble to assign Role when WP User Integration is activated. It would make it a lot better if it was possible to add Custom Capabilities also.


Tony

  • Support Staff

November 6, 2017 at 3:30 am

Hi there,

It’s possible to do via code as EE has an action it fires when creating a user:

do_action( 'AHEE__EED_WP_Users_SPCO__process_wpuser_for_attendee__user_user_created', $user, $attendee, $registration, $password );

(Note $password is a randomly generated string at that point and the user is forced to reset it on the next login, it is NOT the user-supplied password)

So you can add your own function to add custom capabilities using that hook.

Viewing 1 reply thread

The support post ‘Feature request: add Custom Capabilities when new 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.

Event Espresso