Function Reference: geodir_post_package_info
Summary
Returns package information as an objects.
Package
GeoDirectory
Parameters
- $package_info
- (array) (required) Package info array.
- Default: None
- $post
- (object|string) (required) The post object.
- Default: None
- $post_type
- (string) (required) The post type.
- Default: None
Return Values
- (object)
- Returns filtered package info as an object.
Change Log
Since: 1.0.0
Source File
geodir_post_package_info() is located in geodirectory-functions/custom_functions.php [Line: 166]
Source Code
function geodir_post_package_info( $package_info, $post = '', $post_type = '' ) { $package_info['pid'] = 0; $package_info['days'] = 0; $package_info['amount'] = 0; $package_info['is_featured'] = 0; $package_info['image_limit'] = ''; $package_info['google_analytics'] = 1; $package_info['sendtofriend'] = 0; // @depreciated since 1.6.26 /** * Filter listing package info. * * @since 1.0.0 * * @param array $package_info { * Attributes of the package_info. * * @type int $pid Package ID. Default 0. * @type int $days Package validity in Days. Default 0. * @type int $amount Package amount. Default 0. * @type int $is_featured Is this featured package? Default 0. * @type string $image_limit Image limit for this package. Default "". * @type int $google_analytics Add analytics to this package. Default 1. * @type int $sendtofriend Send to friend. Default 0. * * } * @param object|string $post The post object. * @param string $post_type The post type. */ return (object) apply_filters( 'geodir_post_package_info', $package_info, $post, $post_type ); }