Skip to content

Instantly share code, notes, and snippets.

@N8-B
Last active September 4, 2015 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save N8-B/a445c580266e7af109ca to your computer and use it in GitHub Desktop.
Save N8-B/a445c580266e7af109ca to your computer and use it in GitHub Desktop.
Login Fix for Wordpress Download Manager
/**
* 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