Support » Plugin: Download Monitor » Edit dlm_download from front end

  • Resolved gordonlangley

    (@gordonlangley)


    Hello – I’ve been updating Download Monitor and Page Addon, tip-toeing through my template customisations in the child theme. You gave me some code before that allowed me edit each download from the front-end. This has stopped working for me. If I add you code the download page doesn’t load properly + the formatting breaks. Could you advise me what the code should be?

    Here’s the orginal ticket:

    https://wordpress.org/support/topic/front-end-edit-link-goes-to-page-not-download/

    Here’s the original code:

    edit_post_link( 'Edit Download', '', '', $dlm_download->id );

    Many thanks

    Gordon

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Barry Kooij

    (@barrykooij)

    Hey Gordon,

    Assuming the $dlm_download variable is still correct, this should work:

    edit_post_link( 'Edit Download', '', '', $dlm_download->get_id() );

    Kind Regards,

    Barry Kooij

    Fantastic – worked a treat.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Edit dlm_download from front end’ is closed to new replies.