override includes/class-cs-download-handler.php from my (non-theme) plugin?
-
Can I somehow override the function
download_product
anddownload
from the classwc_download_handler
from my wordpress plugin?There’s no filter for the thing I need to add prior to the download handler being called.
My only other option is to replace the core file then have it nuked when an update happens.
(I don’t think of PECL APD as an option, nor is the find-a-higher-hook-and-replace-everything method described at https://blog.room34.com/archives/5290 since there isn’t a higher hook).
- The topic ‘override includes/class-cs-download-handler.php from my (non-theme) plugin?’ is closed to new replies.