Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/06/2014 09:19:03 PM (12 years ago)
Author:
tw2113
Message:

Add hook documentation for the Settings component.

Fixes #5947

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-settings/bp-settings-actions.php

    r9198 r9215  
    129129                                         * @since BuddyPress (2.1.0)
    130130                                         *
    131                                          * @param string $email_text Text of the email.
    132                                          * @param string $new_user_email New user email that
    133                                          *        the current user has changed to.
    134                                          * @param string $old_user_email Existing email addres
    135                                          *        for the current user.
    136                                          * @param object $update_user Userdata for the current user.
     131                                         * @param string  $email_text    Text of the email.
     132                                         * @param string  $new_user_email New user email that the
     133                                         *                                current user has changed to.
     134                                         * @param string  $old_user_email Existing email address
     135                                         *                                for the current user.
     136                                         * @param WP_User $update_user    Userdata object for the current user.
    137137                                         */
    138138                                        $content = apply_filters( 'bp_new_user_email_content', $email_text, $user_email, $old_user_email, $update_user );
     
    258258        bp_core_add_message( implode( '</p><p>', $feedback ), $feedback_type );
    259259
    260         // Execute additional code
     260        /**
     261         * Fires after the general settings have been saved, and before redirect.
     262         *
     263         * @since BuddyPress (1.5.0)
     264         */
    261265        do_action( 'bp_core_general_settings_after_save' );
    262266
     
    304308        }
    305309
     310        /**
     311         * Fires after the notificaton settings have been saved, and before redirect.
     312         *
     313         * @since BuddyPress (1.5.0)
     314         */
    306315        do_action( 'bp_core_notification_settings_after_save' );
    307316
     
    342351        check_admin_referer( 'capabilities' );
    343352
     353        /**
     354         * Fires before the capabilities settings have been saved.
     355         *
     356         * @since BuddyPress (1.6.0)
     357         */
    344358        do_action( 'bp_settings_capabilities_before_save' );
    345359
     
    351365                $status = ( true == $is_spammer ) ? 'spam' : 'ham';
    352366                bp_core_process_spammer_status( bp_displayed_user_id(), $status );
     367
     368                /**
     369                 * Fires after processing a user as a spammer.
     370                 *
     371                 * @since BuddyPress (1.1.0)
     372                 *
     373                 * @param int    $value  ID of the currently displayed user.
     374                 * @param string $status Determined status of "spam" or "ham" for the displayed user.
     375                 */
    353376                do_action( 'bp_core_action_set_spammer_status', bp_displayed_user_id(), $status );
    354377        }
     
    356379        /** Other *************************************************************/
    357380
     381        /**
     382         * Fires after the capabilities settings have been saved and before redirect.
     383         *
     384         * @since BuddyPress (1.6.0)
     385         */
    358386        do_action( 'bp_settings_capabilities_after_save' );
    359387
Note: See TracChangeset for help on using the changeset viewer.