Skip to:
Content

BuddyPress.org

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

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

     
    113113        // < BP 1.6 backpat
    114114        bp_activity_set_action( $bp->friends->id, 'friends_register_activity_action', __( 'New friendship created', 'buddypress' ) );
    115115
     116        /**
     117         * Fires after all default bp-friends activity actions have been registered.
     118         *
     119         * @since BuddyPress (1.1.0)
     120         */
    116121        do_action( 'friends_register_activity_actions' );
    117122}
    118123add_action( 'bp_register_activity_actions', 'friends_register_activity_actions' );
     
    139144                $action     = apply_filters( 'friends_activity_friendsip_accepted_action', $action, $friendship );
    140145        }
    141146
     147        /**
     148         * Filters the 'friendship_accepted' activty action format.
     149         *
     150         * @since BuddyPress (2.0.0)
     151         *
     152         * @param string $action String text for the 'friendship_accepted' action.
     153         * @param object $activity Activity data.
     154         */
    142155        return apply_filters( 'bp_friends_format_activity_action_friendship_accepted', $action, $activity );
    143156}
    144157
     
    165178                $action     = apply_filters( 'friends_activity_friendsip_accepted_action', $action, $friendship );
    166179        }
    167180
     181        /**
     182         * Filters the 'friendship_created' activty action format.
     183         *
     184         * @since BuddyPress (2.0.0)
     185         *
     186         * @param string $action String text for the 'friendship_created' action.
     187         * @param object $activity Activity data.
     188         */
    168189        return apply_filters( 'bp_friends_format_activity_action_friendship_created', $action, $activity );
    169190}
    170191