Skip to:
Content

bbPress.org

Changeset 6808


Ignore:
Timestamp:
04/23/2018 03:53:41 AM (6 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.

Location:
trunk/src/includes/extend/buddypress
Files:
2 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
  • trunk/src/includes/extend/buddypress/members.php

    r6805 r6808  
    3131        $this->setup_actions();
    3232        $this->setup_filters();
     33        $this->fully_loaded();
    3334    }
    3435
     
    7576    }
    7677
     78    /**
     79     * Allow the variables, actions, and filters to be modified by third party
     80     * plugins and themes.
     81     *
     82     * @since 2.6.0 bbPress (r6808)
     83     */
     84    private function fully_loaded() {
     85        do_action_ref_array( 'bbp_buddypress_members_loaded', array( $this ) );
     86    }
     87
    7788    /** Filters ***************************************************************/
    7889
Note: See TracChangeset for help on using the changeset viewer.