Skip to content

Instantly share code, notes, and snippets.

@RalfAlbert
Created December 28, 2011 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RalfAlbert/1529022 to your computer and use it in GitHub Desktop.
Save RalfAlbert/1529022 to your computer and use it in GitHub Desktop.
WordPress Quicklogin
<?php
require( dirname(__FILE__) . '/wp-load.php' );
is_wp_error(
wp_signon(
array(
'user_login'=>'YourLoginName',
'user_password'=>'YoUrAw3s0M3P455W0rD'
)
)
) ? die('Mooo... :(') : wp_safe_redirect( admin_url() );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment