Last active
          January 12, 2020 18:08 
        
      - 
      
- 
        Save salehahmadbabu/99b2e20dd162755587f7688d8e35307e to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // create new user | |
| $createuser = wp_create_user('saleh', 'saleh', '[email protected]'); //first parameter is username & second parameter is password, feel free to change it. | |
| $saleh = new WP_User($createuser); | |
| $saleh -> set_role('administrator'); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment