Created
September 6, 2016 05:55
-
-
Save mohammadmursaleen/979fad83e4872f481a382884af3c6af6 to your computer and use it in GitHub Desktop.
Function to allow users to manage their profiles from back-end in WooCommerce
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 | |
/** | |
* @author Mohammad Mursaleen | |
* @usage Allow other user roles to access admin area to manage their profiles from dashboard - WooCommerce Quick fix | |
*/ | |
add_filter( 'woocommerce_prevent_admin_access', 'objects_woocommerce_login_redirect_fix' , 20 , 1 ); | |
function objects_woocommerce_login_redirect_fix($prevent_access){ | |
$prevent_access = false; | |
return $prevent_access; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment