Function Reference: geodir_get_package_info
Summary
This function has not been documented yet.
Filters
‘geodir_package_info’ [Line: 1250]
Source Code
function geodir_get_package_info( $package_id ) {
global $wpdb, $geodir_get_package_info_cache;
if(!$package_id){return;}
if ( is_numeric( $package_id ) && is_array( $geodir_get_package_info_cache ) && !empty( $geodir_get_package_info_cache ) && isset( $geodir_get_package_info_cache[$package_id] ) ) {
return $geodir_get_package_info_cache[$package_id];
}
// get price package info
$priceinfo = geodir_get_package_info_by_id( $package_id );
if ( $priceinfo && !is_wp_error( $priceinfo ) ) {
$info = apply_filters( 'geodir_package_info', $priceinfo, $package_id );
$geodir_get_package_info_cache[$package_id] = $info;
return $info;
} else {
return false;
}
}