Last active
September 4, 2015 06:24
-
-
Save N8-B/a445c580266e7af109ca to your computer and use it in GitHub Desktop.
Login Fix for Wordpress Download Manager
This file contains 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
/** | |
* WooCommerce Account Page Login Fix for Wordpress Download Manager. | |
* Prevents wpdm_login hook from loading and fixes the conflict with WooCommerce login. | |
* Add this code to the functions.php file | |
**/ | |
<?php | |
add_action('plugins_loaded','remove_wpdm_hook'); | |
function remove_wpdm_hook() { | |
remove_action('wp_loaded', 'wpdm_do_login'); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment