کد PHP:
include ('wp-load.php');
$username = sanitize_user($_GET['username']);
$password = trim($_GET['password']);
$user = apply_filters('authenticate', null, $username, $password);
if ( is_wp_error($user) )
exit('نام کاربری یا رمز عبور اشتباه میباشد');