• Can I somehow override the function download_product and download from the class wc_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).

    • This topic was modified 7 years, 7 months ago by frumbert.
  • The topic ‘override includes/class-cs-download-handler.php from my (non-theme) plugin?’ is closed to new replies.