Hello,
That code must be placed in functions.php file in the wp-content/themes/woopress directory or your child theme folder.
You can download the latest versions of plugins from this link:
https://www.8theme.com/download-plugins/
Regards,
Eva Kemp.