diff --git src/bp-groups/bp-groups-classes.php src/bp-groups/bp-groups-classes.php
index 051b861..76e3f6d 100644
|
|
class BP_Groups_Group { |
738 | 738 | // If a 'type' parameter was passed, parse it and overwrite |
739 | 739 | // 'order' and 'orderby' params passed to the function |
740 | 740 | if ( ! empty( $r['type'] ) ) { |
741 | | $order_orderby = self::convert_type_to_order_orderby( $r['type'] ); |
| 741 | $order_orderby = apply_filters( 'bp_groups_get_orderby', self::convert_type_to_order_orderby( $r['type'] ), $r['type'] ); |
742 | 742 | |
743 | 743 | // If an invalid type is passed, $order_orderby will be |
744 | 744 | // an array with empty values. In this case, we stick |
… |
… |
class BP_Groups_Group { |
756 | 756 | $order = bp_esc_sql_order( $order ); |
757 | 757 | |
758 | 758 | // Convert 'orderby' into the proper ORDER BY term |
759 | | $orderby = self::convert_orderby_to_order_by_term( $orderby ); |
| 759 | $orderby = apply_filters( 'bp_groups_get_orderby_converted_by_term', self::convert_orderby_to_order_by_term( $orderby ), $orderby, $r['type'] ); |
760 | 760 | |
761 | 761 | // Random order is a special case |
762 | 762 | if ( 'rand()' === $orderby ) { |