Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/18/2014 01:07:17 PM (12 years ago)
Author:
boonebgorges
Message:

Hook documentation for part of the Friends component.

Includes bp-friends-activity, bp-friends-widgets, and bp-friends-screens.

Props tw2113.
See #5942.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-friends/bp-friends-activity.php

    r8428 r9154  
    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}
     
    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}
     
    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}
Note: See TracChangeset for help on using the changeset viewer.