Skip to content

Instantly share code, notes, and snippets.

@NateJacobs
NateJacobs / gist:1257325
Created October 2, 2011 10:31
Check for city email during registration
<?php
/**
* Check for City Email
*
* If a user tries to register with a city email address an error is returned.
*
* @author Nate Jacobs
* @link http://gist.github.com/1257325
*/
add_action( 'registration_errors', 'check_user_email',10, 3 );
<?php
class StophaMultipleAuthentication
{
// declare your active directory domain here
CONST domain = 'your domain';
/**
* Class Construct
*