Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/14/2014 01:59:32 PM (10 years ago)
Author:
boonebgorges
Message:

Add support for $single param in _get_meta() functions

Unlike get_metadata(), we are defaulting to $single = true, for backward
compatibility.

See #5400

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-functions.php

    r7872 r7879  
    592592 * @uses apply_filters() To call the 'bp_activity_get_meta' hook.
    593593 *
    594  * @param int $activity_id ID of the activity item whose metadata is being requseted.
     594 * @param int $activity_id ID of the activity item whose metadata is being requested.
    595595 * @param string $meta_key Optional. If present, only the metadata matching
    596  *                         that meta key will be returned. Otherwise, all
    597  *                         metadata for the activity item will be fetched.
     596 *        that meta key will be returned. Otherwise, all metadata for the
     597 *        activity item will be fetched.
     598 * @param bool $single Optional. If true, return only the first value of the
     599 *    specified meta_key. This parameter has no effect if meta_key is not
     600 *    specified. Default: true.
    598601 * @return mixed The meta value(s) being requested.
    599602 */
Note: See TracChangeset for help on using the changeset viewer.