Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/23/2018 03:53:41 AM (7 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress: add more fully_loaded() methods to component classes.

This will allow an entry point for plugins to alter these classes how they see fit.

Fixes #3192.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/groups.php

    r6791 r6808  
    3838        $this->setup_filters();
    3939        $this->maybe_unset_forum_menu();
     40        $this->fully_loaded();
    4041    }
    4142
     
    151152            add_filter( 'bbp_current_user_can_access_create_reply_form', array( $this, 'form_permissions' ) );
    152153        }
     154    }
     155
     156    /**
     157     * Allow the variables, actions, and filters to be modified by third party
     158     * plugins and themes.
     159     *
     160     * @since 2.6.0 bbPress (r6808)
     161     */
     162    private function fully_loaded() {
     163        do_action_ref_array( 'bbp_buddypress_groups_loaded', array( $this ) );
    153164    }
    154165
Note: See TracChangeset for help on using the changeset viewer.