Created
April 21, 2017 06:57
-
-
Save danielstrelec/f5e5d38a02efc3becd7683221633e6c0 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
| // přesměrování nástěnky | |
| function dashboard_redirect(){ | |
| wp_redirect(admin_url('edit.php?post_type=page')); | |
| } | |
| add_action('load-index.php','dashboard_redirect'); | |
| function login_redirect( $redirect_to, $request, $user ){ | |
| return admin_url('edit.php?post_type=page'); | |
| } | |
| add_filter('login_redirect','login_redirect',10,3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment