Docs / Function Reference / get_package_data

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 January 26, 2026

Need Help?

Get support from our team or community forum.

Visit Support

Customization

Need custom features? We can help.

Request Quote