Skip to:
Content

BuddyPress.org

Ticket #5942: bp-friends-classes-5942.diff

File bp-friends-classes-5942.diff, 1.1 KB (added by tw2113, 11 years ago)
  • src/bp-friends/bp-friends-classes.php

     
    145145                $this->is_limited        = apply_filters( 'friends_friendship_is_limited_before_save',        $this->is_limited,        $this->id );
    146146                $this->date_created      = apply_filters( 'friends_friendship_date_created_before_save',      $this->date_created,      $this->id );
    147147
     148                /**
     149                 * Fires before processing and saving the current friendship request.
     150                 *
     151                 * @since BuddyPress (1.0.0)
     152                 *
     153                 * @param Object $value Current friendship request object.
     154                 */
    148155                do_action_ref_array( 'friends_friendship_before_save', array( &$this ) );
    149156
    150157                // Update
     
    157164                        $this->id = $wpdb->insert_id;
    158165                }
    159166
     167                /**
     168                 * Fires after processing and saving the current friendship request.
     169                 *
     170                 * @since BuddyPress (1.0.0)
     171                 *
     172                 * @param Object $value Current friendship request object.
     173                 */
    160174                do_action( 'friends_friendship_after_save', array( &$this ) );
    161175
    162176                return $result;