Skip to:
Content

BuddyPress.org

Ticket #5678: 5678.patch

File 5678.patch, 1.3 KB (added by imath, 11 years ago)
  • src/bp-members/admin/bp-members-classes.php

    diff --git src/bp-members/admin/bp-members-classes.php src/bp-members/admin/bp-members-classes.php
    index 413e1e2..b9a5e36 100644
    class BP_Members_List_Table extends WP_Users_List_Table { 
    334334        public function column_count_sent( $signup_object = null ) {
    335335                echo absint( $signup_object->count_sent );
    336336        }
     337
     338        /**
     339         * Allow plugins to add their costum column.
     340         *
     341         * @since BuddyPress 2.1.0
     342         *
     343         * @param object $signup_object The signup data object.
     344         * @param string the column name.
     345         */
     346        function column_default( $signup_object = null, $column_name = '' ) {
     347                return apply_filters( 'bp_members_signup_custom_column', '', $column_name, $signup_object );
     348        }
    337349}
    338350
    339351endif;
    class BP_Members_MS_List_Table extends WP_MS_Users_List_Table { 
    659671        public function column_count_sent( $signup_object = null ) {
    660672                echo absint( $signup_object->count_sent );
    661673        }
     674
     675        /**
     676         * Allow plugins to add their costum column.
     677         *
     678         * @since BuddyPress 2.1.0
     679         *
     680         * @param object $signup_object The signup data object.
     681         * @param string the column name.
     682         */
     683        function column_default( $signup_object = null, $column_name = '' ) {
     684                return apply_filters( 'bp_members_ms_signup_custom_column', '', $column_name, $signup_object );
     685        }
    662686}
    663687
    664688endif;