Answers.Body: <p>It looks like you would need to create a custom plugin which would play role to interconnect the two features, ultimate member plugin account verification method and automatic wordpress user creation through profile.</p>
  
  <p>In that custom plugin, you would need to use '<a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_post/" rel="nofollow noreferrer">hook_civicrm_post</a>' hook which will get called every time a DB write is done, make sure to put an if condition right after the hook function definition to make plugin run only when account gets created and in that if condition make call to the function that performs account verification process in 'Ultimate Member' plugins, more detail on how to call a function of wordpress plugin from another wordpress plugin can be found <a href="https://wordpress.stackexchange.com/questions/57043/how-can-i-call-a-function-from-one-plugin-within-another-plugin">here</a>.</p>
  
  <p>Hope this solution will help you.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-08T20:03:49.983Z
Answers.Text: This is correct!  I had a similar problem with Drupal and the Domain Access module.  When a user was created through a Civi profile, the Domain Access module couldn't set their permissions.  I wrote [domain_civicrm](https://github.com/MegaphoneJon/domain_civicrm) to solve that problem - you need a similar plugin.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-09T19:53:56.993Z
Answers.Text: sadly I don't know how to create a custom plugin. anyways thanks : )
Answers.UserDisplayName: khanzada
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-08T19:48:09.210Z
Answers.LastActivityDate: 2018-01-08T19:48:09.210Z
Answers.UserDisplayName: Hassan Farooq
Body: <p>so the scenario is that i am using civi profiles for civicrm contact and wordpress user creation by enabling "WordPress user account registration option?" in profile's advance setting.</p>
  
  <p>I am also using 2 other plugins to control access of wordpress users which are "<strong>Ultimate Member</strong>" and "<strong>User Role Editor</strong>". ultimate member plugin has a option by which when a user register it needs admin approval. i have selected that option but its not doing what it has to do. when ever a user register i automatically approves it.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-05T19:09:32.003Z
Comments.Text: It's a little unclear what you're asking here. If the plug in Ultimate Member isn't working like it is supposed to - we might not be able to help with that. But if you give us a better idea of your use case for an account approval step maybe we can help with some Civi pointers.
Comments.UserDisplayName: RayWright
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-08T15:57:34.883Z
Comments.Text: my issue is that civicrm profiles are not working in conjunction with ultimate member. is there any way to fix this? or is there any way by which when i create account by civi profiles it ask for admin approval in both civi and wordpress
Comments.UserDisplayName: khanzada
Tags: <wordpress>
Title: Civicrm and wordpress user registration after admin approval
ThreadText: # Civicrm and wordpress user registration after admin approval
  
  (Asked by: username_0 on 2018-01-05)
  
  so the scenario is that i am using civi profiles for civicrm contact and wordpress user creation by enabling "WordPress user account registration option?" in profile's advance setting.
  
  I am also using 2 other plugins to control access of wordpress users which are "**Ultimate Member**" and "**User Role Editor**". ultimate member plugin has a option by which when a user register it needs admin approval. i have selected that option but its not doing what it has to do. when ever a user register i automatically approves it.
  
  **Tags:** wordpress
  
  > **Comments:**
  > **username_1**: It's a little unclear what you're asking here. If the plug in Ultimate Member isn't working like it is supposed to - we might not be able to help with that. But if you give us a better idea of your use case for an account approval step maybe we can help with some Civi pointers.  
  > **username_0**: my issue is that civicrm profiles are not working in conjunction with ultimate member. is there any way to fix this? or is there any way by which when i create account by civi profiles it ask for admin approval in both civi and wordpress  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-01-08. Score: 1
  
  It looks like you would need to create a custom plugin which would play role to interconnect the two features, ultimate member plugin account verification method and automatic wordpress user creation through profile.
  
  In that custom plugin, you would need to use '[hook\_civicrm\_post](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_post/)' hook which will get called every time a DB write is done, make sure to put an if condition right after the hook function definition to make plugin run only when account gets created and in that if condition make call to the function that performs account verification process in 'Ultimate Member' plugins, more detail on how to call a function of wordpress plugin from another wordpress plugin can be found [here](https://wordpress.stackexchange.com/questions/57043/how-can-i-call-a-function-from-one-plugin-within-another-plugin).
  
  Hope this solution will help you.
  
  > **Comments:**
  > **username_3**: This is correct!  I had a similar problem with Drupal and the Domain Access module.  When a user was created through a Civi profile, the Domain Access module couldn't set their permissions.  I wrote [domain_civicrm](https://github.com/MegaphoneJon/domain_civicrm) to solve that problem - you need a similar plugin.  
  > **username_0**: sadly I don't know how to create a custom plugin. anyways thanks : )  
  
  ---
  
  