/** * Calls function for each meta matching the timestamp criteria. Callback function * will get a single parameter that is an object representing the meta. * * @since 3.8.14 * * @param int|string $timestamp timestamp to compare meta items against, if int a unix timestamp is assumed, * if string a mysql timestamp is assumed * @param string $comparison any one of the supported comparison operators,(=,>=,>,<=,<,<>,!=) * @param string $meta_key restrict testing of meta to the values with the specified meta key * @return array metadata matching the query */ function wpsc_get_purchase_meta_by_timestamp($timestamp = 0, $comparison = '>', $metakey = '') { return wpsc_get_meta_by_timestamp('wpsc_purchase', $timestamp, $comparison, $metakey); }
/** * Calls function for each meta matching the timestamp criteria. Callback function * will get a single parameter that is an object representing the meta. * * @since 3.8.14 * * @param int|string $timestamp timestamp to compare meta items against, if int a unix timestamp is assumed, * if string a mysql timestamp is assumed * @param string $comparison any one of the supported comparison operators,(=,>=,>,<=,<,<>,!=) * @param string $meta_key restrict testing of meta to the values with the specified meta key * @return array metadata matching the query */ function wpsc_get_visitor_meta_by_timestamp($timestamp = 0, $comparison = '>', $meta_key = '') { if (!_wpsc_visitor_database_ready()) { return false; } // Allow central validation (and possibly transformation) of visitor meta prior to it being saved $meta_key = _wpsc_validate_visitor_meta_key($meta_key); return wpsc_get_meta_by_timestamp('wpsc_visitor', $timestamp, $comparison, $meta_key); }
/** * Calls function for each meta matching the timestamp criteria. Callback function * will get a single parameter that is an object representing the meta. * * @since 3.8.12 * * @param int|string $timestamp timestamp to compare meta items against, if int a unix timestamp is assumed, * if string a mysql timestamp is assumed * @param string $comparison any one of the supported comparison operators,(=,>=,>,<=,<,<>,!=) * @param string $meta_key restrict testing of meta to the values with the specified meta key * @return array metadata matching the query */ function wpsc_get_cart_item_meta_by_timestamp($timestamp = 0, $comparison = '>', $metakey = '') { return wpsc_get_meta_by_timestamp('wpsc_cart_item', $timestamp, $comparison, $metakey); }