• Hello, is there a way to set the master key to the title of the package? I am trying to use this plugin to coordinate with the post/page ID so that post/page ID: 414 would result in the same Download Manager shortcode: [wpdm_package id=’414′]

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Nayeem Hyder

    (@nriddhi)

    Do you want to combine the master key with page or post URL?

    Thread Starter shemakeswebsites

    (@shemakeswebsites)

    I want the master key to be the same as the Post ID. Is this possible?

    Plugin Support Nayeem Hyder

    (@nriddhi)

    The master key generally auto-generated key, it is not editable.

    Thanks.

    Thread Starter shemakeswebsites

    (@shemakeswebsites)

    Thank you for your quick response. You said generally.., does that mean that it can be editable with code?

    Plugin Contributor Shafaet Alam

    (@shafayat-alam)

    Hi,
    Yes, it can be edited using code. The master key is saved in the post meta __wpdm_masterkey.

    Thread Starter shemakeswebsites

    (@shemakeswebsites)

    Thank you for your help. Is there any way that you can share a snippet to tweak the masterkey settings so that it can be manually set in the back-end? I would really, really appreciate it!

    Plugin Contributor Shafaet Alam

    (@shafayat-alam)

    You may use code like the following:

    $key = "ADD-YOUR-KEY"; //Your may your custom key or for ramdom key, use function uniqid();
    update_post_meta($package_id, '__wpdm_masterkey', $key);

    Replace $package_id with download package ID.

    Thread Starter shemakeswebsites

    (@shemakeswebsites)

    Hi again, thank you. Would this be something that would run in a php function? Would this allow the master key field to be set manually in each download?

    Thread Starter shemakeswebsites

    (@shemakeswebsites)

    Hello I am writing to you for your help again. Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Set Master key’ is closed to new replies.