projects
/
WP-Plugins
/
glm-member-db-contacts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25a34db
)
added filter to prevent woocommerce from restricting admin access
author
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 16 Jun 2016 18:15:17 +0000
(14:15 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 16 Jun 2016 18:15:17 +0000
(14:15 -0400)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
06fbc11
..
6099787
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-240,6
+240,7
@@
function my_login_redirect($redirect_to, $request, $user) {
}
return $redirect_to;
}
+add_filter( 'woocommerce_prevent_admin_access', '__return_false' );
add_filter("login_redirect", "my_login_redirect", 10, 3);
?>