Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/20/2023 06:34:46 AM (3 years ago)
Author:
imath
Message:

Improve inline doc, informing about global variable usage in functions

In various xProfile component files, used globals are:

  • $wpdb: the WordPress database object,
  • $profile_template: the xProfile data template object,
  • $group: the current group of profile fields in a loop,
  • $field: the current field in a loop.

Props upadalavipul

Fixes #8890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php

    r13469 r13484  
    255255     * @since 2.4.0
    256256     * @since 2.8.0 Added `$user_id` and `$get_data` parameters.
     257     *
     258     * @global wpdb $wpdb WordPress database object.
    257259     *
    258260     * @static
     
    926928     * Get the type for provided field ID.
    927929     *
     930     * @global wpdb $wpdb WordPress database object.
     931     *
    928932     * @param int $field_id Field ID to get type of.
    929933     * @return bool|null|string
     
    10571061     *
    10581062     * @since 2.4.0
     1063     *
     1064     * @global wpdb $wpdb WordPress database object.
    10591065     *
    10601066     * @param string|array $member_types Member type or array of member types. Use 'any' to return unrestricted
Note: See TracChangeset for help on using the changeset viewer.