• Resolved dcole07

    (@dcole07)


    I’m working on a plugin that allows people to download a XML file in the same exact way WordPress does it for exporting posts, but I can’t seam to get it to work.

    I was thinking I could hook into init and check if there was a $_GET[‘download’]; but the hook doesn’t seam to work. I can get the page with the button to work. I’ve checked and the function does exist and can be called with a function call. So I must be using the wrong hook or placing the add_action in the wrong location. Any advice?

Viewing 1 replies (of 1 total)
  • Thread Starter dcole07

    (@dcole07)

    So, the problem was that the page and file with the functions was only being called when that page was needed. Meaning the function for the dynamic download was never included when needed.

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic File Download & WP Hook Problems’ is closed to new replies.