Description:

Takes a package ID and returns the database record for that package.

 

Usage:

<?php wpdm_get_package($id); ?>

 

Return Value:

Return package data in an Array if package exists

 

Example:

To get the title for a post with ID 2:

<?php
$package = wpdm_get_package(2);
echo $package['post_title'];
?>

To get the download count:

<?php echo $package['download_count']; ?>
Last Updated: Nov 16, 2014


Leave a Reply