Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/02/2019 03:14:25 PM (6 years ago)
Author:
espellcaste
Message:

Added hooks to filter Activity and Groups list table get_sortable_columns

Adding custom hooks permitting the sortable columns of the Activity and Group list table to be filtered.

Props @modemlooper
Fixes #7533

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-groups-list-table.php

    r11530 r12331  
    418418     */
    419419    public function get_sortable_columns() {
    420         return array(
     420
     421        /**
     422         * Filters the column names for the sortable columns.
     423         *
     424         * @since 5.0.0
     425         *
     426         * @param array $value Array of keys and their values.
     427         */
     428        return apply_filters( 'bp_groups_list_table_get_sortable_columns', array(
    421429            'gid'         => array( 'gid', false ),
    422430            'comment'     => array( 'name', false ),
    423431            'members'     => array( 'members', false ),
    424432            'last_active' => array( 'last_active', false ),
    425         );
     433        ) );
    426434    }
    427435
Note: See TracChangeset for help on using the changeset viewer.