Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/22/2021 11:42:56 PM (3 years ago)
Author:
espellcaste
Message:

Update the @return PHPDoc field for the bp_xprofile_get_meta function.

Props imath

Fixes #7606

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-functions.php

    r13012 r13088  
    984984 *                            specified meta_key. This parameter has no effect if meta_key is not
    985985 *                            specified. Default: true.
    986  * @return mixed Meta value if found. False on failure.
     986 * @return mixed An array of values if `$single` is false.
     987 *               The value of the meta field if `$single` is true.
     988 *               False for an invalid `$object_type` (one of `group`, `field`, `data`).
     989 *               False for an invalid `$object_id` (non-numeric, zero, or negative value),
     990 *               or if `$meta_type` is not specified.
     991 *               An empty string if a valid but non-existing object ID is passed.
    987992 */
    988993function bp_xprofile_get_meta( $object_id, $object_type, $meta_key = '', $single = true ) {
Note: See TracChangeset for help on using the changeset viewer.