Skip to:
Content

BuddyPress.org

Changeset 11530


Ignore:
Timestamp:
04/09/2017 02:56:00 AM (8 years ago)
Author:
tw2113
Message:

Adds missed phpdoc for a new filter. Also adds some various param and return docs.

See #7143.

Location:
trunk/src/bp-groups
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-admin.php

    r11447 r11530  
    874874            'group_role' => array( $type ),
    875875            'type'       => 'alphabetical',
     876            /**
     877             * Filters the admin members type per page value.
     878             *
     879             * @since 2.8.0
     880             *
     881             * @param int    $value Member types per page. Default 10.
     882             * @param string $type  Member type.
     883             */
    876884            'per_page'   => apply_filters( 'bp_groups_admin_members_type_per_page', 10, $type ),
    877885            'page'       => $current_type_page,
     
    10301038 * @since 2.6.0
    10311039 *
    1032  * @param BP_Groups_Group|null $user The BP_Groups_Group object corresponding to the group being edited.
     1040 * @param BP_Groups_Group|null $group The BP_Groups_Group object corresponding to the group being edited.
    10331041 */
    10341042function bp_groups_admin_edit_metabox_group_type( BP_Groups_Group $group = null ) {
     
    10761084 *
    10771085 * @since 2.6.0
     1086 *
     1087 * @param int $group_id Group ID.
    10781088 */
    10791089function bp_groups_process_group_type_update( $group_id ) {
  • trunk/src/bp-groups/bp-groups-cache.php

    r11087 r11530  
    232232 *
    233233 * @since 2.6.0
     234 *
     235 * @param BP_Groups_Member $member BP Groups Member instance.
    234236 */
    235237function bp_groups_clear_user_group_cache_on_membership_save( BP_Groups_Member $member ) {
     
    244246 *
    245247 * @since 2.6.0
     248 *
     249 * @param int $user_id  Current user ID.
     250 * @param int $group_id Current group ID.
    246251 */
    247252function bp_groups_clear_user_group_cache_on_other_events( $user_id, $group_id ) {
  • trunk/src/bp-groups/bp-groups-functions.php

    r11523 r11530  
    271271 * @param string|bool $invite_status Optional. Who is allowed to send invitations
    272272 *                                   to the group. 'members', 'mods', or 'admins'.
     273 * @param int|bool    $parent_id     Parent group ID.
    273274 * @return bool True on success, false on failure.
    274275 */
     
    23112312 * @since 2.7.0 $group_type parameter also accepts an array of group types now.
    23122313 *
    2313  * @param int          $group      ID of the group.
     2314 * @param int          $group_id   ID of the group.
    23142315 * @param string|array $group_type Group type or array of group types to set.
    23152316 * @param bool         $append     Optional. True to append this to existing types for group,
     
    24122413 * @since 2.6.0
    24132414 *
    2414  * @param int            $group      ID of the user.
     2415 * @param int            $group_id   ID of the user.
    24152416 * @param string         $group_type Group type.
    24162417 * @return bool|WP_Error $deleted    True on success. False or WP_Error on failure.
  • trunk/src/bp-groups/bp-groups-template.php

    r11527 r11530  
    209209     *
    210210     * @param int $group_id Group ID. Defaults to current group ID if on a group page.
    211      * @param array|string $args {
     211     * @param array|string $r {
    212212     *     Array of parameters. All items are optional.
    213213     *     @type string $parent_element Element to wrap around the list. Defaults to 'p'.
     
    37873787     * @since 1.0.0
    37883788     *
    3789      * @return type
     3789     * @return int
    37903790     */
    37913791    function bp_get_total_group_count() {
  • trunk/src/bp-groups/classes/class-bp-groups-group.php

    r11526 r11530  
    470470     * @since 2.7.0
    471471     *
    472      * @param string $key Property name.
     472     * @param string $key   Property name.
     473     * @param mixed  $value Property value.
     474     * @return bool
    473475     */
    474476    public function __set( $key, $value ) {
  • trunk/src/bp-groups/classes/class-bp-groups-list-table.php

    r11440 r11530  
    707707     * @since 2.7.0
    708708     *
    709      * @param string $value       Empty string.
     709     * @param string $retval      Empty string.
    710710     * @param string $column_name Name of the column being rendered.
    711711     * @param array  $item        The current group item in the loop.
     712     * @return string
    712713     */
    713714    public function column_content_group_type( $retval = '', $column_name, $item ) {
Note: See TracChangeset for help on using the changeset viewer.