WP File Download Addon Developer Documentation

This documentation will help experienced developers to plug any other service with our plugin. Here are all actions and filters for this plugin, if you need some more, feel free to ask by using this for dedicated forum. Thanks for using our plugin!

wpfd_addon_dropbox_uploaded_result

Filter to get uploaded dropbox file params

Parameters :

array

Return :

void

In files :

app/admin/init.php line 1723

wpfd_addon_googledrive_uploaded_result

Filter to get uploaded google drive file

Parameters :

array|WPFDGoogle_Service_Drive_DriveFile

Return :

void

In files :

app/admin/init.php line 1694

wpfd_addon_onedrive_business_uploaded_result

Filter to get uploaded dropbox file params

Parameters :

array

Return :

void

In files :

app/admin/onedrive_business.init.php line 165

wpfd_addon_onedrive_uploaded_result

Filter to get uploaded dropbox file params

Parameters :

array

Return :

void

In files :

app/admin/init.php line 1766

wpfd_addon_upload_chunk_size

Set upload chunk size in Mb when upload large file

Parameters :

integer Chunk size in Mb

Return :

void

In files :

app/admin/classes/WpfdAddonGoogle.php line 548

wpfd_renew_subscriptions_interval

Filter to change renew subscriptions time, this will override WPFDA_RENEW_SUBSCRIPTIONS_INTERVAL constance
This value can not large than 3 days in seconds (648000)

Parameters :

$interval Time in second

Return :

void

In files :

app/functions.php line 75

Composer

composer logo Here is the solution to use our plugins as a composer dependency.
You have to declare in your composer.json file the joomunited repository, please make sure to replace the YOUR_TOKEN in the url by your own token. You can find it under https://www.joomunited.com/my-account under the Composer token accordion.
{
   "repositories":[
      {
         "type":"package",
         "package":{
            "name":"joomunited/wp-file-download-addon",
            "version":"master",
            "type":"wordpress-plugin",
            "dist":{
               "type":"zip",
               "url":"https://www.joomunited.com/extra/download/wp-file-download-addon/YOUR_TOKEN",
               "reference":"master"
            }
         }
      }
   ],
   "require":{
      "composer/installers":"~1.0",
      "joomunited/wp-file-download-addon":"dev-master"
   }
}

Please not that composer update command can't work on private repositories (for more explanation please refer to the composer documentation)
Though, you can manually update the plugin to the latest version with this command:
composer remove joomunited/wp-file-download-addon && composer clearcache && composer require joomunited/wp-file-download-addon:dev-master