Title: Set Master key
Last modified: January 20, 2020

---

# Set Master key

 *  [shemakeswebsites](https://wordpress.org/support/users/shemakeswebsites/)
 * (@shemakeswebsites)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/set-master-key/)
 * 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](https://wordpress.org/support/users/nriddhi/)
 * (@nriddhi)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/set-master-key/#post-12342781)
 * Do you want to combine the master key with page or post URL?
 *  Thread Starter [shemakeswebsites](https://wordpress.org/support/users/shemakeswebsites/)
 * (@shemakeswebsites)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/set-master-key/#post-12343287)
 * I want the master key to be the same as the Post ID. Is this possible?
 *  Plugin Support [Nayeem Hyder](https://wordpress.org/support/users/nriddhi/)
 * (@nriddhi)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/set-master-key/#post-12343315)
 * The master key generally auto-generated key, it is not editable.
 * Thanks.
 *  Thread Starter [shemakeswebsites](https://wordpress.org/support/users/shemakeswebsites/)
 * (@shemakeswebsites)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/set-master-key/#post-12343340)
 * Thank you for your quick response. You said _generally.._, does that mean that
   it can be editable with code?
 *  Plugin Contributor [Shafaet Alam](https://wordpress.org/support/users/shafayat-alam/)
 * (@shafayat-alam)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/set-master-key/#post-12343689)
 * Hi,
    Yes, it can be edited using code. The master key is saved in the post meta`
   __wpdm_masterkey`.
 *  Thread Starter [shemakeswebsites](https://wordpress.org/support/users/shemakeswebsites/)
 * (@shemakeswebsites)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/set-master-key/#post-12346266)
 * 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](https://wordpress.org/support/users/shafayat-alam/)
 * (@shafayat-alam)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/set-master-key/#post-12347225)
 * 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](https://wordpress.org/support/users/shemakeswebsites/)
 * (@shemakeswebsites)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/set-master-key/#post-12347271)
 * 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](https://wordpress.org/support/users/shemakeswebsites/)
 * (@shemakeswebsites)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/set-master-key/#post-12388223)
 * 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.

 * ![](https://ps.w.org/download-manager/assets/icon-256x256.png?rev=1561688)
 * [Download Manager](https://wordpress.org/plugins/download-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/download-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/download-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-manager/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [shemakeswebsites](https://wordpress.org/support/users/shemakeswebsites/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/set-master-key/#post-12388223)
 * Status: not resolved