Last active
December 22, 2015 02:48
-
-
Save DrewAPicture/6405527 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
<?php | |
class Unnamed_Theme { | |
public function __construct() { | |
add_filter( 'login_redirect', array( $this, 'login_redirect' ), 10, 3 ); | |
} | |
public function login_redirect( $redirect_to, $request, $user ) { | |
return admin_url( 'media-new.php' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment