Main Menu
Sub Menu

get_package_data

Description:

This function returns the values of the package info with the specified key from the specified package.
Usage:

<?php echo get_package_data($id, $key); ?>

Parameters:

$id: The ID of a package

$key: A string containing the name of the package info you want

Valid Keys:

  • access
  • download_count
  • view_count
  • version
  • link_label
  • quota
  • download_limit_per_user
  • package_size
  • package_size_b
  • individual_file_download
  • template
  • page_template
  • password_lock
  • password
  • password_usage_limit
  • email_lock
  • tweet_lock
  • facebook_lock
  • googleplus_lock
  • files
  • fileinfo
  • package_dir
  • publish_date
  • expire_date
  • icon
  • base_price
  • sales_price
  • variation

 

Example:

To get the download_count for a package with ID 2:

<?php 
   $download_count = get_package_data(2, 'download_count'); 
   echo $download_count; 
?>

 

Last updated on Sep 3, 2021

Need More Clarification?

For any technical issue, if you are already using pro version please post in pro forum and free version users please post in free forum. Otherwise, if you have any pre-sale or order related query please contact live chat support team. For technical support.

Need Customization?

If you need additional customization on WordPress Download Manager or any type of custom support on WordPress you may contact our customization service.