Updater Code (Plugin)

Step 1: Click here to download this zip file which contains the updater code.

Step 2: Unzip the files and place wpdigipro-update-checker.php file inside your plugin’s root folder.

Step 3: If your plugin name is XYZ then you should have xyz.php file in your plugin folder. Now, open your xyz.php file and add following code at the top of it.

$update_lister = new WPDigiPro_Update_Checker('remote_url', plugin_dir_path(__FILE__).basename(__FILE__), 'plugin_slug', 'refrence id');

Step 4: In your text editor change the three variables as shown below.

i) remote_url: if your website URL is yourwebsitedomain.com, then you need to place it in this variable.

ii) plugin_slug: If your plugin’s folder name is pluginfoldername, then you need to place it here as shown below.

iii) reference_id: This is the product ID of your product. If it’s 21, place it as shown below.


How do you find product ID?
It’s simple.
1. Click on all products.
2. Mouse hover on the EDIT link of the product whose product ID you want. Then click on EDIT link. You will find the product ID in the URL of your browser. So, if the URL comes as:
then 21 is the product ID.

Was this article helpful to you? Yes No

How can we help?