code help

Home Forums Legacy Support 4.0 Bugs & Issues code help

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #369119
    EduMEE2
    Participant
    i want only a particular domain can register on my site. can you share a code for this register page?? refer: https://gyazo.com/6bfb76676c3e01eab6cdcec9dc001a74 if entered email is not equal to @jbhunt.com then they cant register. hide the register button or give a alert box. anything. tell me how can i achieve this
    #369120
    EduMEE2
    Participant
    This reply has been marked as private.
    #369242
    Veronica
    Moderator
    hi yes we need to check the code please ping us here for update
    #369283
    EduMEE2
    Participant
    This reply has been marked as private.
    #369323
    Veronica
    Moderator
    try this code in wplms-customizer.php
    add_filter('vibebp_register_user_bypass',function($flag,$body){
        foreach($body as $key => $value){
            if($value['type'] == 'email'){
                 if(strpos($value['value'],'@jbhunt.com')==false){
                    $flag = false;
                 }
            }
        }
    
        return $flag;
    },10,2);
    #369336
    EduMEE2
    Participant
    This reply has been marked as private.
    #369540
    Veronica
    Moderator
    hi no this is not possible
    #369980
    EduMEE2
    Participant
    This reply has been marked as private.
    #369999
    Veronica
    Moderator
    topic close
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘code help’ is closed to new replies.