Tagged Questions
0
votes
1answer
19 views
How can I prevent redirects from mysite/page to mysite/wp path/page?
Apparently this is built into WP somwhere since going to mysite/wp-login.php takes me to mysite/<wp path>/wp-login.php (same for wp-admin and I presume other paths).
The problem is, I don't ...
2
votes
1answer
25 views
How to set Active plugins as the default screen?
In my testing environment, I've got one hundred plugins. I'm more interested in seeing first the Active plugins than the complete list (All).
How can I change the default screen for the Plugins menu ...
0
votes
2answers
84 views
Redirect from the dashboard to edit.php if wp_is_mobile() is true
Looking for a way to redirect the user from the dashboard straight to edit.php if wp_is_mobile() is true.
This is what I've tried:
function redirect_if_mobile() {
$screen = ...
2
votes
1answer
55 views
Redirect users away from Admin breaks ajax
Tried to make a simple redirect for some users I don't want to access the wp-admin/, so I did this code:
function no_admin_access() {
if ( !current_user_can( 'delete_posts' ) ) {
...