Skip to content

Instantly share code, notes, and snippets.

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 champsupertramp/6cbe54e0e5c34729ad7c to your computer and use it in GitHub Desktop.
Save champsupertramp/6cbe54e0e5c34729ad7c to your computer and use it in GitHub Desktop.
/**
* @detach action 'um_remove_unused_uploads'
*/
function detach_um_remove_unused_uploads( $arg ){
remove_action('um_after_user_upload','um_remove_unused_uploads', 10 );
}
add_action('um_after_user_updated','detach_um_remove_unused_uploads',10,1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment