Skip to:
Content

BuddyPress.org

Changeset 9495


Ignore:
Timestamp:
02/17/2015 07:04:05 AM (5 years ago)
Author:
tw2113
Message:

Adds hooks documentation to class-bp-grou-extension.php.

See #5943

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-group-extension.php

    r9486 r9495  
    762762    public function _display_hook() {
    763763        add_action( 'bp_template_content', array( &$this, 'call_display' ) );
     764
     765        /**
     766         * Filters the template to load for the main display method.
     767         *
     768         * @since BuddyPress (1.0.0)
     769         *
     770         * @param string $template_file Path to the template to load.
     771         */
    764772        bp_core_load_template( apply_filters( 'bp_core_template_plugin', $this->template_file ) );
    765773    }
     
    10241032        // Perform a redirect only if one has not already taken place
    10251033        if ( empty( $this->post_save_redirect ) ) {
     1034
     1035            /**
     1036             * Filters the URL to redirect to after group edit screen save.
     1037             *
     1038             * Only runs if a redirect has not already occurred.
     1039             *
     1040             * @since BuddyPress (2.1.0)
     1041             *
     1042             * @param string $value URL to redirect to.
     1043             */
    10261044            $redirect_to = apply_filters( 'bp_group_extension_edit_screen_save_redirect', bp_get_requested_url( ) );
    10271045
Note: See TracChangeset for help on using the changeset viewer.