Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/11/2014 09:17:53 PM (10 years ago)
Author:
boonebgorges
Message:

Add hook documentation in bp-activity-template.php

Props tw2113.
Fixes #59384.

File:
1 edited

Legend:

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

    r9133 r9136  
    1414 * Output the activity component slug.
    1515 *
    16  * @since BuddyPress (1.5)
     16 * @since BuddyPress (1.5.0)
    1717 *
    1818 * @uses bp_get_activity_slug()
     
    2424     * Return the activity component slug.
    2525     *
    26      * @since BuddyPress (1.5)
     26     * @since BuddyPress (1.5.0)
    2727     *
    2828     * @uses apply_filters() To call the 'bp_get_activity_slug' hook.
     
    3131     */
    3232    function bp_get_activity_slug() {
     33
     34        /**
     35         * Filters the activity component slug.
     36         *
     37         * @since BuddyPress (1.5.0)
     38         *
     39         * @param string $slug Activity component slug.
     40         */
    3341        return apply_filters( 'bp_get_activity_slug', buddypress()->activity->slug );
    3442    }
     
    3745 * Output the activity component root slug.
    3846 *
    39  * @since BuddyPress (1.5)
     47 * @since BuddyPress (1.5.0)
    4048 *
    4149 * @uses bp_get_activity_root_slug()
     
    4755     * Return the activity component root slug.
    4856     *
    49      * @since BuddyPress (1.5)
     57     * @since BuddyPress (1.5.0)
    5058     *
    5159     * @uses apply_filters() To call the 'bp_get_activity_root_slug' hook.
     
    5462     */
    5563    function bp_get_activity_root_slug() {
     64
     65        /**
     66         * Filters the activity component root slug.
     67         *
     68         * @since BuddyPress (1.5.0)
     69         *
     70         * @param string $root_slug Activity component root slug.
     71         */
    5672        return apply_filters( 'bp_get_activity_root_slug', buddypress()->activity->root_slug );
    5773    }
     
    6076 * Output activity directory permalink.
    6177 *
    62  * @since BuddyPress (1.5)
     78 * @since BuddyPress (1.5.0)
    6379 *
    6480 * @uses bp_get_activity_directory_permalink()
     
    7086     * Return activity directory permalink
    7187     *
    72      * @since BuddyPress (1.5)
     88     * @since BuddyPress (1.5.0)
    7389     *
    7490     * @uses traisingslashit()
     
    8096     */
    8197    function bp_get_activity_directory_permalink() {
     98
     99        /**
     100         * Filters the activity directory permalink.
     101         *
     102         * @since BuddyPress (1.5.0)
     103         *
     104         * @param string $url Permalink url for the activity directory.
     105         */
    82106        return apply_filters( 'bp_get_activity_directory_permalink', trailingslashit( bp_get_root_domain() . '/' . bp_get_activity_root_slug() ) );
    83107    }
     
    88112 * This is responsible for loading a group of activity items and displaying them.
    89113 *
    90  * @since BuddyPress (1.0)
     114 * @since BuddyPress (1.0.0)
    91115 */
    92116class BP_Activity_Template {
     
    341365            return true;
    342366        } elseif ( $this->current_activity + 1 == $this->activity_count ) {
    343             do_action('activity_loop_end');
     367
     368            /**
     369             * Fires right before the rewinding of activity posts.
     370             *
     371             * @since BuddyPress (1.1.0)
     372             */
     373            do_action( 'activity_loop_end' );
    344374            // Do some cleaning up after the loop
    345375            $this->rewind_activities();
     
    367397            $this->activity = (object) $this->activity;
    368398
    369         if ( $this->current_activity == 0 ) // loop has just started
     399        if ( $this->current_activity == 0 ) { // loop has just started
     400
     401            /**
     402             * Fires if the current activity item is the first in the activity loop.
     403             */
    370404            do_action('activity_loop_start');
     405        }
    371406    }
    372407}
     
    379414 * template functions to display a list of activity items.
    380415 *
    381  * @since BuddyPress (1.0)
     416 * @since BuddyPress (1.0.0)
    382417 *
    383418 * @global object $activities_template {@link BP_Activity_Template}
     
    658693        $per_page = $max;
    659694
    660     // Support for basic filters in earlier BP versions is disabled by default. To enable, put
    661     //   add_filter( 'bp_activity_enable_afilter_support', '__return_true' );
    662     // into bp-custom.php or your theme's functions.php
     695    /**
     696     * Filters whether BuddyPress should enable afilter support.
     697     *
     698     * Support for basic filters in earlier BP versions is disabled by default.
     699     * To enable, put add_filter( 'bp_activity_enable_afilter_support', '__return_true' );
     700     * into bp-custom.php or your theme's functions.php.
     701     *
     702     * @since BuddyPress (1.6.0)
     703     *
     704     * @param bool $value True if BuddyPress should enable afilter support.
     705     */
    663706    if ( isset( $_GET['afilter'] ) && apply_filters( 'bp_activity_enable_afilter_support', false ) )
    664707        $filter = array( 'object' => $_GET['afilter'] );
     
    693736    $activities_template = new BP_Activity_Template( $template_args );
    694737
     738    /**
     739     * Filters whether or not there are activity items to display.
     740     *
     741     * @since BuddyPress (1.1.0)
     742     *
     743     * @param bool   $has_activities Whether or not there are activity items to display.
     744     * @param string $activities_template Current activities template being used.
     745     * @param array  $template_args Array of arguments passed into the BP_Activity_Template class.
     746     */
    695747    return apply_filters( 'bp_has_activities', $activities_template->has_activities(), $activities_template, $template_args );
    696748}
     
    699751 * Determine if there are still activities left in the loop.
    700752 *
    701  * @since BuddyPress (1.0)
     753 * @since BuddyPress (1.0.0)
    702754 *
    703755 * @global object $activities_template {@link BP_Activity_Template}
     
    714766 * Get the current activity object in the loop.
    715767 *
    716  * @since BuddyPress (1.0)
     768 * @since BuddyPress (1.0.0)
    717769 *
    718770 * @global object $activities_template {@link BP_Activity_Template}
     
    740792        $link = add_query_arg( $activities_template->pag_arg, $activities_template->pag_page + 1, $link );
    741793
     794        /**
     795         * Filters the Load More link URL.
     796         *
     797         * @since BuddyPress (2.1.0)
     798         *
     799         * @param string $link The Load More link URL.
     800         */
    742801        return apply_filters( 'bp_get_activity_load_more_link', $link );
    743802    }
     
    746805 * Output the activity pagination count.
    747806 *
    748  * @since BuddyPress (1.0)
     807 * @since BuddyPress (1.0.0)
    749808 *
    750809 * @global object $activities_template {@link BP_Activity_Template}
     
    758817     * Return the activity pagination count.
    759818     *
    760      * @since BuddyPress (1.2)
     819     * @since BuddyPress (1.2.0)
    761820     *
    762821     * @global object $activities_template {@link BP_Activity_Template}
     
    779838 * Output the activity pagination links.
    780839 *
    781  * @since BuddyPress (1.0)
     840 * @since BuddyPress (1.0.0)
    782841 *
    783842 * @uses bp_get_activity_pagination_links()
     
    790849     * Return the activity pagination links.
    791850     *
    792      * @since BuddyPress (1.0)
     851     * @since BuddyPress (1.0.0)
    793852     *
    794853     * @global object $activities_template {@link BP_Activity_Template}
     
    800859        global $activities_template;
    801860
     861        /**
     862         * Filters the activity pagination link output.
     863         *
     864         * @since BuddyPress (1.0.0)
     865         *
     866         * @param string $pag_links Output for the activity pagination links.
     867         */
    802868        return apply_filters( 'bp_get_activity_pagination_links', $activities_template->pag_links );
    803869    }
     
    806872 * Return true when there are more activity items to be shown than currently appear.
    807873 *
    808  * @since BuddyPress (1.5)
     874 * @since BuddyPress (1.5.0)
    809875 *
    810876 * @global object $activities_template {@link BP_Activity_Template}
     
    828894    }
    829895
     896    /**
     897     * Filters whether there are more activity items to display.
     898     *
     899     * @since BuddyPress (1.5.0)
     900     *
     901     * @param bool $has_more_items Whether or not there are more activity items to display.
     902     */
    830903    return apply_filters( 'bp_activity_has_more_items', $has_more_items );
    831904}
     
    834907 * Output the activity count.
    835908 *
    836  * @since BuddyPress (1.2)
     909 * @since BuddyPress (1.2.0)
    837910 *
    838911 * @uses bp_get_activity_count()
     
    845918     * Return the activity count.
    846919     *
    847      * @since BuddyPress (1.2)
     920     * @since BuddyPress (1.2.0)
    848921     *
    849922     * @global object $activities_template {@link BP_Activity_Template}
     
    855928        global $activities_template;
    856929
     930        /**
     931         * Filters the activity count for the activity template.
     932         *
     933         * @since BuddyPress (1.2.0)
     934         *
     935         * @param int $activity_count The count for total activity.
     936         */
    857937        return apply_filters( 'bp_get_activity_count', (int) $activities_template->activity_count );
    858938    }
     
    861941 * Output the number of activities per page.
    862942 *
    863  * @since BuddyPress (1.2)
     943 * @since BuddyPress (1.2.0)
    864944 *
    865945 * @uses bp_get_activity_per_page()
     
    872952     * Return the number of activities per page.
    873953     *
    874      * @since BuddyPress (1.2)
     954     * @since BuddyPress (1.2.0)
    875955     *
    876956     * @global object $activities_template {@link BP_Activity_Template}
     
    882962        global $activities_template;
    883963
     964        /**
     965         * Filters the activity posts per page value.
     966         *
     967         * @since BuddyPress (1.2.0)
     968         *
     969         * @param int $pag_num How many post should be displayed for pagination.
     970         */
    884971        return apply_filters( 'bp_get_activity_per_page', (int) $activities_template->pag_num );
    885972    }
     
    888975 * Output the activities title.
    889976 *
    890  * @since BuddyPress (1.0)
     977 * @since BuddyPress (1.0.0)
    891978 *
    892979 * @uses bp_get_activities_title()
     
    900987     * Return the activities title.
    901988     *
    902      * @since BuddyPress (1.0)
     989     * @since BuddyPress (1.0.0)
    903990     *
    904991     * @global string $bp_activity_title
     
    906993     * @todo Deprecate.
    907994     *
    908      * @return int The activities title.
     995     * @return string The activities title.
    909996     */
    910997    function bp_get_activities_title() {
    911998        global $bp_activity_title;
    912999
     1000        /**
     1001         * Filters the activities title for the activity template.
     1002         *
     1003         * @since BuddyPress (1.0.0)
     1004         *
     1005         * @param string $bp_activity_title The title to be displayed.
     1006         */
    9131007        return apply_filters( 'bp_get_activities_title', $bp_activity_title );
    9141008    }
     
    9171011 * {@internal Missing Description}
    9181012 *
    919  * @since BuddyPress (1.0)
     1013 * @since BuddyPress (1.0.0)
    9201014 *
    9211015 * @uses bp_get_activities_no_activity()
     
    9291023     * {@internal Missing Description}
    9301024     *
    931      * @since BuddyPress (1.0)
     1025     * @since BuddyPress (1.0.0)
    9321026     *
    9331027     * @global string $bp_activity_no_activity
     
    9401034        global $bp_activity_no_activity;
    9411035
     1036        /**
     1037         * Filters the text used when there is no activity to display.
     1038         *
     1039         * @since BuddyPress (1.0.0)
     1040         *
     1041         * @param string $bp_activity_no_activity Text to display for no activity.
     1042         */
    9421043        return apply_filters( 'bp_get_activities_no_activity', $bp_activity_no_activity );
    9431044    }
     
    9461047 * Output the activity ID.
    9471048 *
    948  * @since BuddyPress (1.2)
     1049 * @since BuddyPress (1.2.0)
    9491050 *
    9501051 * @uses bp_get_activity_id()
     
    9571058     * Return the activity ID.
    9581059     *
    959      * @since BuddyPress (1.2)
     1060     * @since BuddyPress (1.2.0)
    9601061     *
    9611062     * @global object $activities_template {@link BP_Activity_Template}
     
    9661067    function bp_get_activity_id() {
    9671068        global $activities_template;
     1069
     1070        /**
     1071         * Filters the activity ID being displayed.
     1072         *
     1073         * @since BuddyPress (1.2.0)
     1074         *
     1075         * @param int $id The activity ID.
     1076         */
    9681077        return apply_filters( 'bp_get_activity_id', $activities_template->activity->id );
    9691078    }
     
    9721081 * Output the activity item ID.
    9731082 *
    974  * @since BuddyPress (1.2)
     1083 * @since BuddyPress (1.2.0)
    9751084 *
    9761085 * @uses bp_get_activity_item_id()
     
    9831092     * Return the activity item ID.
    9841093     *
    985      * @since BuddyPress (1.2)
     1094     * @since BuddyPress (1.2.0)
    9861095     *
    9871096     * @global object $activities_template {@link BP_Activity_Template}
     
    9921101    function bp_get_activity_item_id() {
    9931102        global $activities_template;
     1103
     1104        /**
     1105         * Filters the activity item ID being displayed.
     1106         *
     1107         * @since BuddyPress (1.2.0)
     1108         *
     1109         * @param int $item_id The activity item ID.
     1110         */
    9941111        return apply_filters( 'bp_get_activity_item_id', $activities_template->activity->item_id );
    9951112    }
     
    9981115 * Output the activity secondary item ID.
    9991116 *
    1000  * @since BuddyPress (1.2)
     1117 * @since BuddyPress (1.2.0)
    10011118 *
    10021119 * @uses bp_get_activity_secondary_item_id()
     
    10091126     * Return the activity secondary item ID.
    10101127     *
    1011      * @since BuddyPress (1.2)
     1128     * @since BuddyPress (1.2.0)
    10121129     *
    10131130     * @global object $activities_template {@link BP_Activity_Template}
     
    10181135    function bp_get_activity_secondary_item_id() {
    10191136        global $activities_template;
     1137
     1138        /**
     1139         * Filters the activity secondary item ID being displayed.
     1140         *
     1141         * @since BuddyPress (1.2.0)
     1142         *
     1143         * @param int $secondary_item_id The activity secondary item ID.
     1144         */
    10201145        return apply_filters( 'bp_get_activity_secondary_item_id', $activities_template->activity->secondary_item_id );
    10211146    }
     
    10241149 * Output the date the activity was recorded.
    10251150 *
    1026  * @since BuddyPress (1.2)
     1151 * @since BuddyPress (1.2.0)
    10271152 *
    10281153 * @uses bp_get_activity_date_recorded()
     
    10351160     * Return the date the activity was recorded.
    10361161     *
    1037      * @since BuddyPress (1.2)
     1162     * @since BuddyPress (1.2.0)
    10381163     *
    10391164     * @global object $activities_template {@link BP_Activity_Template}
     
    10441169    function bp_get_activity_date_recorded() {
    10451170        global $activities_template;
     1171
     1172        /**
     1173         * Filters the date the activity was recorded.
     1174         *
     1175         * @since BuddyPress (1.2.0)
     1176         *
     1177         * @param int $date_recorded The activity's date.
     1178         */
    10461179        return apply_filters( 'bp_get_activity_date_recorded', $activities_template->activity->date_recorded );
    10471180    }
     
    10751208            : '';
    10761209
     1210        /**
     1211         * Filters the display name of the member who posted the activity.
     1212         *
     1213         * @since BuddyPress (2.1.0)
     1214         *
     1215         * @param int $retval Display name for the member who posted.
     1216         */
    10771217        return apply_filters( 'bp_get_activity_member_display_name', $retval );
    10781218    }
     
    10811221 * Output the activity object name.
    10821222 *
    1083  * @since BuddyPress (1.2)
     1223 * @since BuddyPress (1.2.0)
    10841224 *
    10851225 * @uses bp_get_activity_object_name()
     
    10921232     * Return the activity object name.
    10931233     *
    1094      * @since BuddyPress (1.2)
     1234     * @since BuddyPress (1.2.0)
    10951235     *
    10961236     * @global object $activities_template {@link BP_Activity_Template}
     
    11011241    function bp_get_activity_object_name() {
    11021242        global $activities_template;
     1243
     1244        /**
     1245         * Filters the activity object name.
     1246         *
     1247         * @since BuddyPress (1.2.0)
     1248         *
     1249         * @param string $activity_component The activity object name.
     1250         */
    11031251        return apply_filters( 'bp_get_activity_object_name', $activities_template->activity->component );
    11041252    }
     
    11071255 * Output the activity type.
    11081256 *
    1109  * @since BuddyPress (1.2)
     1257 * @since BuddyPress (1.2.0)
    11101258 *
    11111259 * @uses bp_get_activity_type()
     
    11181266     * Return the activity type.
    11191267     *
    1120      * @since BuddyPress (1.2)
     1268     * @since BuddyPress (1.2.0)
    11211269     *
    11221270     * @global object $activities_template {@link BP_Activity_Template}
     
    11271275    function bp_get_activity_type() {
    11281276        global $activities_template;
     1277
     1278        /**
     1279         * Filters the activity type.
     1280         *
     1281         * @since BuddyPress (1.2.0)
     1282         *
     1283         * @param string $activity_type The activity type.
     1284         */
    11291285        return apply_filters( 'bp_get_activity_type', $activities_template->activity->type );
    11301286    }
     
    11351291     * Just a wrapper for bp_activity_type().
    11361292     *
    1137      * @since BuddyPress (1.2)
    1138      * @deprecated BuddyPress (1.5)
     1293     * @since BuddyPress (1.2.0)
     1294     * @deprecated BuddyPress (1.5.0)
    11391295     *
    11401296     * @todo Properly deprecate in favor of bp_activity_type() and
     
    11501306     * Just a wrapper for bp_get_activity_type().
    11511307     *
    1152      * @since BuddyPress (1.2)
    1153      * @deprecated BuddyPress (1.5)
     1308     * @since BuddyPress (1.2.0)
     1309     * @deprecated BuddyPress (1.5.0)
    11541310     *
    11551311     * @todo Properly deprecate in favor of bp_get_activity_type().
     
    11641320 * Output the activity user ID.
    11651321 *
    1166  * @since BuddyPress (1.1)
     1322 * @since BuddyPress (1.1.0)
    11671323 *
    11681324 * @uses bp_get_activity_user_id()
     
    11751331     * Return the activity user ID.
    11761332     *
    1177      * @since BuddyPress (1.1)
     1333     * @since BuddyPress (1.1.0)
    11781334     *
    11791335     * @global object $activities_template {@link BP_Activity_Template}
     
    11841340    function bp_get_activity_user_id() {
    11851341        global $activities_template;
     1342
     1343        /**
     1344         * Filters the activity user ID.
     1345         *
     1346         * @since BuddyPress (1.1.0)
     1347         *
     1348         * @param int $user_id The activity user ID.
     1349         */
    11861350        return apply_filters( 'bp_get_activity_user_id', $activities_template->activity->user_id );
    11871351    }
     
    11901354 * Output the activity user link.
    11911355 *
    1192  * @since BuddyPress (1.2)
     1356 * @since BuddyPress (1.2.0)
    11931357 *
    11941358 * @uses bp_get_activity_user_link()
     
    12011365     * Return the activity user link.
    12021366     *
    1203      * @since BuddyPress (1.2)
     1367     * @since BuddyPress (1.2.0)
    12041368     *
    12051369     * @global object $activities_template {@link BP_Activity_Template}
     
    12181382        }
    12191383
     1384        /**
     1385         * Filters the activity user link.
     1386         *
     1387         * @since BuddyPress (1.2.0)
     1388         *
     1389         * @param string $link The activity user link.
     1390         */
    12201391        return apply_filters( 'bp_get_activity_user_link', $link );
    12211392    }
     
    12241395 * Output the avatar of the user that performed the action.
    12251396 *
    1226  * @since BuddyPress (1.1)
     1397 * @since BuddyPress (1.1.0)
    12271398 *
    12281399 * @see bp_get_activity_avatar() for description of arguments.
     
    12371408     * Return the avatar of the user that performed the action.
    12381409     *
    1239      * @since BuddyPress (1.1)
     1410     * @since BuddyPress (1.1.0)
    12401411     *
    12411412     * @see bp_core_fetch_avatar() For a description of the arguments.
     
    13101481        }
    13111482
    1312         // Primary activity avatar is always a user, but can be modified via a filter
     1483        /**
     1484         * Filters the activity avatar object based on current activity item component.
     1485         *
     1486         * This is a variable filter dependent on the component used.
     1487         * Possible hooks are bp_get_activity_avatar_object_blog,
     1488         * bp_get_activity_avatar_object_group, and bp_get_activity_avatar_object_user.
     1489         *
     1490         * @since BuddyPress (1.1.0)
     1491         *
     1492         * @param string $component Component being displayed.
     1493         */
    13131494        $object  = apply_filters( 'bp_get_activity_avatar_object_' . $current_activity_item->component, 'user' );
    13141495        $item_id = !empty( $user_id ) ? $user_id : $current_activity_item->user_id;
     1496
     1497        /**
     1498         * Filters the activity avatar item ID.
     1499         *
     1500         * @since BuddyPress (1.2.10)
     1501         *
     1502         * @param int $item_id Item ID for the activity avatar.
     1503         */
    13151504        $item_id = apply_filters( 'bp_get_activity_avatar_item_id', $item_id );
    13161505
     
    13191508            $email = $current_activity_item->user_email;
    13201509
     1510        /**
     1511         * Filters the value returned by bp_core_fetch_avatar.
     1512         *
     1513         * @since BuddyPress (1.1.3)
     1514         *
     1515         * @param array $value Array of arguments calculated for use with bp_core_fetch_avatar.
     1516         */
    13211517        return apply_filters( 'bp_get_activity_avatar', bp_core_fetch_avatar( array(
    13221518            'item_id' => $item_id,
     
    13341530 * Output the avatar of the object that action was performed on.
    13351531 *
    1336  * @since BuddyPress (1.2)
     1532 * @since BuddyPress (1.2.0)
    13371533 *
    13381534 * @see bp_get_activity_secondary_avatar() for description of arguments.
     
    13481544     * Return the avatar of the object that action was performed on
    13491545     *
    1350      * @since BuddyPress (1.2)
     1546     * @since BuddyPress (1.2.0)
    13511547     *
    13521548     * @see bp_core_fetch_avatar() for description of arguments.
     
    14471643        }
    14481644
    1449         // Allow object, item_id, and link to be filtered
     1645        /**
     1646         * Filters the activity secondary avatar object based on current activity item component.
     1647         *
     1648         * This is a variable filter dependent on the component used. Possible hooks are
     1649         * bp_get_activity_secondary_avatar_object_blog, bp_get_activity_secondary_avatar_object_group,
     1650         * and bp_get_activity_secondary_avatar_object_user.
     1651         *
     1652         * @since BuddyPress (1.2.10)
     1653         *
     1654         * @param string $object Component being displayed.
     1655         */
    14501656        $object  = apply_filters( 'bp_get_activity_secondary_avatar_object_' . $activities_template->activity->component, $object );
     1657
     1658        /**
     1659         * Filters the activity secondary avatar item ID.
     1660         *
     1661         * @since BuddyPress (1.2.10)
     1662         *
     1663         * @param int $item_id ID for the secondary avatar item.
     1664         */
    14511665        $item_id = apply_filters( 'bp_get_activity_secondary_avatar_item_id', $item_id );
    14521666
     
    14691683
    14701684        if ( !empty( $linked ) ) {
     1685
     1686            /**
     1687             * Filters the secondary avatar link for current activity.
     1688             *
     1689             * @since BuddyPress (1.7.0)
     1690             *
     1691             * @param string $link Link to wrap the avatar image in.
     1692             * @param string $component Activity componant being acted on.
     1693             */
    14711694            $link = apply_filters( 'bp_get_activity_secondary_avatar_link', $link, $activities_template->activity->component );
     1695
     1696            /**
     1697             * Filters the determined avatar for the secondary activity item.
     1698             *
     1699             * @since BuddyPress (1.2.10)
     1700             *
     1701             * @param string Formatted HTML <img> element, or raw avatar URL.
     1702             */
     1703            $avatar = apply_filters( 'bp_get_activity_secondary_avatar', $avatar );
    14721704
    14731705            return sprintf( '<a href="%s" class="%s">%s</a>',
    14741706                $link,
    14751707                $link_class,
    1476                 apply_filters( 'bp_get_activity_secondary_avatar', $avatar )
     1708                $avatar
    14771709            );
    14781710        }
    14791711
    1480         // else
     1712        /** This filter is documented in bp-activity/bp-activity-template.php */
    14811713        return apply_filters( 'bp_get_activity_secondary_avatar', $avatar );
    14821714    }
     
    14851717 * Output the activity action
    14861718 *
    1487  * @since BuddyPress (1.2)
     1719 * @since BuddyPress (1.2.0)
    14881720 *
    14891721 * @param array $args See bp_get_activity_action()
     
    14971729     * Return the activity action
    14981730     *
    1499      * @since BuddyPress (1.2)
     1731     * @since BuddyPress (1.2.0)
    15001732     *
    15011733     * @global object $activities_template {@link BP_Activity_Template}
     
    15211753
    15221754        $action = $activities_template->activity->action;
     1755
     1756        /**
     1757         * Filters the activity action before the action is inserted as meta.
     1758         *
     1759         * @since BuddyPress (1.2.10)
     1760         *
     1761         * @param array $value Array containing the current action, the current activity, and the $args array passed into the function.
     1762         */
    15231763        $action = apply_filters_ref_array( 'bp_get_activity_action_pre_meta', array( $action, &$activities_template->activity, $args ) );
    15241764
     
    15261766            $action = bp_insert_activity_meta( $action );
    15271767
     1768        /**
     1769         * Filters the activity action after the action has been inserted as meta.
     1770         *
     1771         * @since BuddyPress (1.2.0)
     1772         *
     1773         * @param array $value Array containing the current action, the current activity, and the $args array passed into the function.
     1774         */
    15281775        return apply_filters_ref_array( 'bp_get_activity_action', array( $action, &$activities_template->activity, $args ) );
    15291776    }
     
    15321779 * Output the activity content body
    15331780 *
    1534  * @since BuddyPress (1.2)
     1781 * @since BuddyPress (1.2.0)
    15351782 *
    15361783 * @uses bp_get_activity_content_body()
     
    15431790     * Return the activity content body
    15441791     *
    1545      * @since BuddyPress (1.2)
     1792     * @since BuddyPress (1.2.0)
    15461793     *
    15471794     * @global object $activities_template {@link BP_Activity_Template}
     
    15581805            $activities_template->activity->content = bp_insert_activity_meta( $activities_template->activity->content );
    15591806
     1807        /**
     1808         * Filters the activity content body.
     1809         *
     1810         * @since BuddyPress (1.2.0)
     1811         *
     1812         * @param array $value Array containing the current activity content body and the current activity.
     1813         */
    15601814        return apply_filters_ref_array( 'bp_get_activity_content_body', array( $activities_template->activity->content, &$activities_template->activity ) );
    15611815    }
     
    15641818 * Does the activity have content?
    15651819 *
    1566  * @since BuddyPress (1.2)
     1820 * @since BuddyPress (1.2.0)
    15671821 *
    15681822 * @global object $activities_template {@link BP_Activity_Template}
     
    15821836 * Output the activity content.
    15831837 *
    1584  * @since BuddyPress (1.0)
    1585  * @deprecated BuddyPress (1.5)
     1838 * @since BuddyPress (1.0.0)
     1839 * @deprecated BuddyPress (1.5.0)
    15861840 *
    15871841 * @todo properly deprecate this function.
     
    15961850     * Return the activity content.
    15971851     *
    1598      * @since BuddyPress (1.0)
    1599      * @deprecated BuddyPress (1.5)
     1852     * @since BuddyPress (1.0.0)
     1853     * @deprecated BuddyPress (1.5.0)
    16001854     *
    16011855     * @todo properly deprecate this function.
     
    16081862     */
    16091863    function bp_get_activity_content() {
     1864
    16101865        /**
    16111866         * If you want to filter activity update content, please use
     
    16141869         * This function is mainly for backwards comptibility.
    16151870         */
    1616 
    16171871        $content = bp_get_activity_action() . ' ' . bp_get_activity_content_body();
    16181872        return apply_filters( 'bp_get_activity_content', $content );
     
    16251879 * as a link to the item's permalink).
    16261880 *
    1627  * @since BuddyPress (1.2)
     1881 * @since BuddyPress (1.2.0)
    16281882 *
    16291883 * @global object $activities_template {@link BP_Activity_Template}
     
    16451899    $content = str_replace( '<span class="time-since">%s</span>', '', $content );
    16461900
    1647     // Insert the time since.
     1901    /**
     1902     * Filters the activity item time since markup.
     1903     *
     1904     * @since BuddyPress (1.2.0)
     1905     *
     1906     * @param array $value Array containing the time since markup and the current activity component.
     1907     */
    16481908    $time_since = apply_filters_ref_array( 'bp_activity_time_since', array( '<span class="time-since">' . bp_core_time_since( $activities_template->activity->date_recorded ) . '</span>', &$activities_template->activity ) );
    16491909
    16501910    // Insert the permalink
    1651     if ( !bp_is_single_activity() )
     1911    if ( !bp_is_single_activity() ) {
     1912
     1913        /**
     1914         * Filters the activity permalink to be added to the activity content.
     1915         *
     1916         * @since BuddyPress (1.2.0)
     1917         *
     1918         * @param array $value Array containing the html markup for the activity permalink, after being parsed by sprintf and current activity component.
     1919         */
    16521920        $content = apply_filters_ref_array( 'bp_activity_permalink', array( sprintf( '%1$s <a href="%2$s" class="view activity-time-since" title="%3$s">%4$s</a>', $content, bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity ), esc_attr__( 'View Discussion', 'buddypress' ), $time_since ), &$activities_template->activity ) );
    1653     else
     1921    } else {
    16541922        $content .= str_pad( $time_since, strlen( $time_since ) + 2, ' ', STR_PAD_BOTH );
    1655 
     1923    }
     1924
     1925    /**
     1926     * Filters the activity content after activity metadata has been attached.
     1927     *
     1928     * @since BuddyPress (1.2.0)
     1929     *
     1930     * @param string $content Activity content with the activity metadata added.
     1931     */
    16561932    return apply_filters( 'bp_insert_activity_meta', $content );
    16571933}
     
    16601936 * Determine if the current user can delete an activity item.
    16611937 *
    1662  * @since BuddyPress (1.2)
     1938 * @since BuddyPress (1.2.0)
    16631939 *
    16641940 * @global object $activities_template {@link BP_Activity_Template}
     
    17051981    }
    17061982
     1983    /**
     1984     * Filters whether the current user can delete an activity item.
     1985     *
     1986     * @since BuddyPress (1.5.0)
     1987     *
     1988     * @param bool   $can_delete Whether the user can delete the item.
     1989     * @param object $activity Current activity item object.
     1990     */
    17071991    return (bool) apply_filters( 'bp_activity_user_can_delete', $can_delete, $activity );
    17081992}
     
    17111995 * Output the activity parent content.
    17121996 *
    1713  * @since BuddyPress (1.2)
     1997 * @since BuddyPress (1.2.0)
    17141998 *
    17151999 * @see bp_get_activity_parent_content() for a description of arguments.
     
    17252009     * Return the activity content.
    17262010     *
    1727      * @since BuddyPress (1.2)
     2011     * @since BuddyPress (1.2.0)
    17282012     *
    17292013     * @global object $activities_template {@link BP_Activity_Template}
     
    17722056        $content = preg_replace( '/<img[^>]*>/Ui', '', $content );
    17732057
     2058        /**
     2059         * Filters the activity parent content.
     2060         *
     2061         * @since BuddyPress (1.2.0)
     2062         *
     2063         * @param string $content Content set to be displayed as parent content.
     2064         */
    17742065        return apply_filters( 'bp_get_activity_parent_content', $content );
    17752066    }
     
    17782069 * Output the parent activity's user ID.
    17792070 *
    1780  * @since BuddyPress (1.7)
     2071 * @since BuddyPress (1.7.0)
    17812072 */
    17822073function bp_activity_parent_user_id() {
     
    17872078     * Return the parent activity's user ID.
    17882079     *
    1789      * @since BuddyPress (1.7)
     2080     * @since BuddyPress (1.7.0)
    17902081     *
    17912082     * @global BP_Activity_Template $activities_template
     
    18152106        $retval = $activities_template->activity_parents[$parent_id]->user_id;
    18162107
     2108        /**
     2109         * Filters the activity parent item's user ID.
     2110         *
     2111         * @since BuddyPress (1.7.0)
     2112         *
     2113         * @param int $retval ID for the activity parent's user.
     2114         */
    18172115        return (int) apply_filters( 'bp_get_activity_parent_user_id', $retval );
    18182116    }
     
    18212119 * Output whether or not the current activity is in a current user's favorites.
    18222120 *
    1823  * @since BuddyPress (1.2)
     2121 * @since BuddyPress (1.2.0)
    18242122 *
    18252123 * @uses bp_get_activity_is_favorite()
     
    18322130     * Return whether the current activity is in a current user's favorites.
    18332131     *
    1834      * @since BuddyPress (1.2)
     2132     * @since BuddyPress (1.2.0)
    18352133     *
    18362134     * @global object $activities_template {@link BP_Activity_Template}
     
    18422140        global $activities_template;
    18432141
     2142        /**
     2143         * Filters whether the current activity item is in the current user's favorites.
     2144         *
     2145         * @since BuddyPress (1.2.0)
     2146         *
     2147         * @param bool $value Whether or not the current activity item is in the current user's favorites.
     2148         */
    18442149        return (bool) apply_filters( 'bp_get_activity_is_favorite', in_array( $activities_template->activity->id, (array) $activities_template->my_favs ) );
    18452150    }
     
    18482153 * Output the comment markup for an activity item.
    18492154 *
    1850  * @since BuddyPress (1.2)
     2155 * @since BuddyPress (1.2.0)
    18512156 *
    18522157 * @todo deprecate $args param
     
    18612166     * Get the comment markup for an activity item.
    18622167     *
    1863      * @since BuddyPress (1.2)
     2168     * @since BuddyPress (1.2.0)
    18642169     *
    18652170     * @todo deprecate $args param
     
    18882193         * split between here and the comment.php template.
    18892194         *
    1890          * @since BuddyPress (1.2)
     2195         * @since BuddyPress (1.2.0)
    18912196         *
    18922197         * @param object $comment The activity object currently being recursed
     
    19042209                return false;
    19052210
     2211            /**
     2212             * Filters the opening tag for the template that lists activity comments.
     2213             *
     2214             * @since BuddyPress (1.6.0)
     2215             *
     2216             * @param string $value Opening tag for the HTML markup to use.
     2217             */
    19062218            echo apply_filters( 'bp_activity_recurse_comments_start_ul', '<ul>');
    19072219            foreach ( (array) $comment->children as $comment_child ) {
     
    19232235                unset( $activities_template->activity->current_comment );
    19242236            }
     2237
     2238            /**
     2239             * Filters the closing tag for the template that list activity comments.
     2240             *
     2241             * @since BuddyPress (1.6.0)
     2242             *
     2243             * @param string $value Closing tag for the HTML markup to use.
     2244             */
    19252245            echo apply_filters( 'bp_activity_recurse_comments_end_ul', '</ul>');
    19262246        }
     
    19292249 * Utility function that returns the comment currently being recursed.
    19302250 *
    1931  * @since BuddyPress (1.5)
     2251 * @since BuddyPress (1.5.0)
    19322252 *
    19332253 * @global object $activities_template {@link BP_Activity_Template}
     
    19422262    $current_comment = !empty( $activities_template->activity->current_comment ) ? $activities_template->activity->current_comment : false;
    19432263
     2264    /**
     2265     * Filters the current comment being recursed.
     2266     *
     2267     * @since BuddyPress (1.5.0)
     2268     *
     2269     * @param object|bool $current_comment The activity comment currently being displayed. False on failure.
     2270     */
    19442271    return apply_filters( 'bp_activity_current_comment', $current_comment );
    19452272}
     
    19492276 * Output the ID of the activity comment currently being displayed.
    19502277 *
    1951  * @since BuddyPress (1.5)
     2278 * @since BuddyPress (1.5.0)
    19522279 *
    19532280 * @uses bp_get_activity_comment_id()
     
    19602287     * Return the ID of the activity comment currently being displayed.
    19612288     *
    1962      * @since BuddyPress (1.5)
     2289     * @since BuddyPress (1.5.0)
    19632290     *
    19642291     * @global object $activities_template {@link BP_Activity_Template}
     
    19732300        $comment_id = isset( $activities_template->activity->current_comment->id ) ? $activities_template->activity->current_comment->id : false;
    19742301
     2302        /**
     2303         * Filters the ID of the activity comment currently being displayed.
     2304         *
     2305         * @since BuddyPress (1.5.0)
     2306         *
     2307         * @param int|bool $comment_id ID for the comment currently being displayed.
     2308         */
    19752309        return apply_filters( 'bp_activity_comment_id', $comment_id );
    19762310    }
     
    19792313 * Output the ID of the author of the activity comment currently being displayed.
    19802314 *
    1981  * @since BuddyPress (1.5)
     2315 * @since BuddyPress (1.5.0)
    19822316 *
    19832317 * @uses bp_get_activity_comment_user_id()
     
    19902324     * Return the ID of the author of the activity comment currently being displayed.
    19912325     *
    1992      * @since BuddyPress (1.5)
     2326     * @since BuddyPress (1.5.0)
    19932327     *
    19942328     * @global object $activities_template {@link BP_Activity_Template}
     
    20032337        $user_id = isset( $activities_template->activity->current_comment->user_id ) ? $activities_template->activity->current_comment->user_id : false;
    20042338
     2339        /**
     2340         * Filters the ID of the author of the activity comment currently being displayed.
     2341         *
     2342         * @since BuddyPress (1.5.0)
     2343         *
     2344         * @param int|bool $user_id ID for the author of the comment currently being displayed.
     2345         */
    20052346        return apply_filters( 'bp_activity_comment_user_id', $user_id );
    20062347    }
     
    20092350 * Output the author link for the activity comment currently being displayed.
    20102351 *
    2011  * @since BuddyPress (1.5)
     2352 * @since BuddyPress (1.5.0)
    20122353 *
    20132354 * @uses bp_get_activity_comment_user_link()
     
    20202361     * Return the author link for the activity comment currently being displayed.
    20212362     *
    2022      * @since BuddyPress (1.5)
     2363     * @since BuddyPress (1.5.0)
    20232364     *
    20242365     * @uses bp_core_get_user_domain()
     
    20312372        $user_link = bp_core_get_user_domain( bp_get_activity_comment_user_id() );
    20322373
     2374        /**
     2375         * Filters the author link for the activity comment currently being displayed.
     2376         *
     2377         * @since BuddyPress (1.5.0)
     2378         *
     2379         * @param string $user_link Link for the author of the activity comment currently being displayed.
     2380         */
    20332381        return apply_filters( 'bp_activity_comment_user_link', $user_link );
    20342382    }
     
    20372385 * Output the author name for the activity comment currently being displayed.
    20382386 *
    2039  * @since BuddyPress (1.5)
     2387 * @since BuddyPress (1.5.0)
    20402388 *
    20412389 * @uses bp_get_activity_comment_name()
     
    20512399     * 'bp_activity_comment_name'.
    20522400     *
    2053      * @since BuddyPress (1.5)
     2401     * @since BuddyPress (1.5.0)
    20542402     *
    20552403     * @global object $activities_template {@link BP_Activity_Template}
     
    20622410        global $activities_template;
    20632411
    2064         if ( isset( $activities_template->activity->current_comment->user_fullname ) )
     2412        if ( isset( $activities_template->activity->current_comment->user_fullname ) ) {
     2413
    20652414            $name = apply_filters( 'bp_acomment_name', $activities_template->activity->current_comment->user_fullname, $activities_template->activity->current_comment );  // backward compatibility
    2066         else
     2415        } else {
    20672416            $name = $activities_template->activity->current_comment->display_name;
    2068 
     2417        }
     2418
     2419        /**
     2420         * Filters the name of the author for the activity comment.
     2421         *
     2422         * @since BuddyPress (1.5.0)
     2423         *
     2424         * @param string $name Name to be displayed with the activity comment.
     2425         */
    20692426        return apply_filters( 'bp_activity_comment_name', $name );
    20702427    }
     
    20732430 * Output the date_recorded of the activity comment currently being displayed.
    20742431 *
    2075  * @since BuddyPress (1.5)
     2432 * @since BuddyPress (1.5.0)
    20762433 *
    20772434 * @uses bp_get_activity_comment_date_recorded()
     
    20842441     * Return the date_recorded for the activity comment currently being displayed.
    20852442     *
    2086      * @since BuddyPress (1.5)
     2443     * @since BuddyPress (1.5.0)
    20872444     *
    20882445     * @global object $activities_template {@link BP_Activity_Template}
     
    21012458        $date_recorded = bp_core_time_since( $activities_template->activity->current_comment->date_recorded );
    21022459
     2460        /**
     2461         * Filters the recorded date of the activity comment currently being displayed.
     2462         *
     2463         * @since BuddyPress (1.5.0)
     2464         *
     2465         * @param string|bool Date for the activity comment currently being displayed.
     2466         */
    21032467        return apply_filters( 'bp_activity_comment_date_recorded', $date_recorded );
    21042468    }
     
    21072471 * Output the 'delete' URL for the activity comment currently being displayed.
    21082472 *
    2109  * @since BuddyPress (1.5)
     2473 * @since BuddyPress (1.5.0)
    21102474 *
    21112475 * @uses bp_get_activity_comment_delete_link()
     
    21182482     * Gets the 'delete' URL for the activity comment currently being displayed
    21192483     *
    2120      * @since BuddyPress (1.5)
     2484     * @since BuddyPress (1.5.0)
    21212485     *
    21222486     * @uses wp_nonce_url()
     
    21322496        $link = wp_nonce_url( bp_get_root_domain() . '/' . bp_get_activity_slug() . '/delete/' . bp_get_activity_comment_id() . '?cid=' . bp_get_activity_comment_id(), 'bp_activity_delete_link' );
    21332497
     2498        /**
     2499         * Filters the link used for deleting the activity comment currently being displayed.
     2500         *
     2501         * @since BuddyPress (1.5.0)
     2502         *
     2503         * @param string $link Link to use for deleting the currently displayed activity comment.
     2504         */
    21342505        return apply_filters( 'bp_activity_comment_delete_link', $link );
    21352506    }
     
    21382509 * Output the content of the activity comment currently being displayed.
    21392510 *
    2140  * @since BuddyPress (1.5)
     2511 * @since BuddyPress (1.5.0)
    21412512 *
    21422513 * @uses bp_get_activity_comment_content()
     
    21542525     * comments only.
    21552526     *
    2156      * @since BuddyPress (1.5)
     2527     * @since BuddyPress (1.5.0)
    21572528     *
    21582529     * @global object $activities_template {@link BP_Activity_Template}
     
    21652536        global $activities_template;
    21662537
     2538        /** This filter is documented in bp-activity/bp-activity-template.php */
    21672539        $content = apply_filters( 'bp_get_activity_content', $activities_template->activity->current_comment->content );
    21682540
     2541        /**
     2542         * Filters the content of the current activity comment.
     2543         *
     2544         * @since BuddyPress (1.2.0)
     2545         *
     2546         * @param string $content The content of the current activity comment.
     2547         */
    21692548        return apply_filters( 'bp_activity_comment_content', $content );
    21702549    }
     
    21732552 * Output the activity comment count.
    21742553 *
    2175  * @since BuddyPress (1.2)
     2554 * @since BuddyPress (1.2.0)
    21762555 *
    21772556 * @uses bp_activity_get_comment_count()
     
    21842563     * Return the comment count of an activity item.
    21852564     *
    2186      * @since BuddyPress (1.2)
     2565     * @since BuddyPress (1.2.0)
    21872566     *
    21882567     * @global object $activities_template {@link BP_Activity_Template}
     
    22072586            : 0;
    22082587
     2588        /**
     2589         * Filters the activity comment count.
     2590         *
     2591         * @since BuddyPress (1.2.0)
     2592         *
     2593         * @param int $count The activity comment count.
     2594         */
    22092595        return apply_filters( 'bp_activity_get_comment_count', (int) $count );
    22102596    }
     
    22162602         * activity child has, and returns them.
    22172603         *
    2218          * @since BuddyPress (1.2)
     2604         * @since BuddyPress (1.2.0)
    22192605         *
    22202606         * @uses bp_activity_recurse_comment_count()
     
    22392625            }
    22402626
    2241             // Filter and return
     2627            /**
     2628             * Filters the total number of comments for the current comment.
     2629             *
     2630             * @since BuddyPress (2.1.0)
     2631             *
     2632             * @param int    $new_count New total count for the current comment.
     2633             * @param object $comment Activity comment object.
     2634             * @param int    $count Current iteration count for the current comment.
     2635             */
    22422636            return apply_filters( 'bp_activity_recurse_comment_count', $new_count, $comment, $count );
    22432637        }
     
    22562650     * @since BuddyPress (2.0.0)
    22572651     *
    2258      * @return int
     2652     * @return int $depth Depth for the current activity comment
    22592653     */
    22602654    function bp_activity_get_comment_depth() {
    22612655        global $activities_template;
     2656
     2657        /**
     2658         * Filters the comment depth of the current activity comment.
     2659         *
     2660         * @since BuddyPress (2.0.0)
     2661         *
     2662         * @param int $depth Depth for the current activity comment.
     2663         */
    22622664        return apply_filters( 'bp_activity_get_comment_depth', $activities_template->activity->current_comment->depth );
    22632665    }
     
    22662668 * Output the activity comment link.
    22672669 *
    2268  * @since BuddyPress (1.2)
     2670 * @since BuddyPress (1.2.0)
    22692671 *
    22702672 * @uses bp_get_activity_comment_link()
     
    22772679     * Return the activity comment link.
    22782680     *
    2279      * @since BuddyPress (1.2)
     2681     * @since BuddyPress (1.2.0)
    22802682     *
    22812683     * @global object $activities_template {@link BP_Activity_Template}
     
    22862688    function bp_get_activity_comment_link() {
    22872689        global $activities_template;
     2690
     2691        /**
     2692         * Filters the comment link for the current activity comment.
     2693         *
     2694         * @since BuddyPress (1.2.0)
     2695         *
     2696         * @param string $value Constructed URL parameters with activity IDs.
     2697         */
    22882698        return apply_filters( 'bp_get_activity_comment_link', '?ac=' . $activities_template->activity->id . '/#ac-form-' . $activities_template->activity->id );
    22892699    }
     
    22922702 * Output the activity comment form no javascript display CSS.
    22932703 *
    2294  * @since BuddyPress (1.2)
     2704 * @since BuddyPress (1.2.0)
    22952705 *
    22962706 * @uses bp_get_activity_comment_form_nojs_display()
     
    23032713     * Return the activity comment form no javascript display CSS.
    23042714     *
    2305      * @since BuddyPress (1.2)
     2715     * @since BuddyPress (1.2.0)
    23062716     *
    23072717     * @global object $activities_template {@link BP_Activity_Template}
     
    23212731 * Output the activity comment form action.
    23222732 *
    2323  * @since BuddyPress (1.2)
     2733 * @since BuddyPress (1.2.0)
    23242734 *
    23252735 * @uses bp_get_activity_comment_form_action()
     
    23322742     * Return the activity comment form action.
    23332743     *
    2334      * @since BuddyPress (1.2)
     2744     * @since BuddyPress (1.2.0)
    23352745     *
    23362746     * @uses home_url()
     
    23412751     */
    23422752    function bp_get_activity_comment_form_action() {
     2753
     2754        /**
     2755         * Filters the activity comment form action URL.
     2756         *
     2757         * @since BuddyPress (1.2.0)
     2758         *
     2759         * @param string $value URL to use in the comment form's action attribute.
     2760         */
    23432761        return apply_filters( 'bp_get_activity_comment_form_action', home_url( bp_get_activity_root_slug() . '/reply/' ) );
    23442762    }
     
    23472765 * Output the activity permalink ID.
    23482766 *
    2349  * @since BuddyPress (1.2)
     2767 * @since BuddyPress (1.2.0)
    23502768 *
    23512769 * @uses bp_get_activity_permalink_id()
     
    23582776     * Return the activity permalink ID.
    23592777     *
    2360      * @since BuddyPress (1.2)
     2778     * @since BuddyPress (1.2.0)
    23612779     *
    23622780     * @uses apply_filters() To call the 'bp_get_activity_permalink_id' hook.
     
    23652783     */
    23662784    function bp_get_activity_permalink_id() {
     2785
     2786        /**
     2787         * Filters the activity action permalink ID.
     2788         *
     2789         * @since BuddyPress (1.2.0)
     2790         *
     2791         * @param string $value Current action for the activity item.
     2792         */
    23672793        return apply_filters( 'bp_get_activity_permalink_id', bp_current_action() );
    23682794    }
     
    23712797 * Output the activity thread permalink.
    23722798 *
    2373  * @since BuddyPress (1.2)
     2799 * @since BuddyPress (1.2.0)
    23742800 *
    23752801 * @uses bp_get_activity_permalink_id()
     
    23822808     * Return the activity thread permalink.
    23832809     *
    2384      * @since BuddyPress (1.2)
     2810     * @since BuddyPress (1.2.0)
    23852811     *
    23862812     * @uses bp_activity_get_permalink()
     
    23942820        $link = bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity );
    23952821
     2822        /**
     2823         * Filters the activity thread permalink.
     2824         *
     2825         * @since BuddyPress (1.2.0)
     2826         *
     2827         * @param string $link The activity thread permalink.
     2828         */
    23962829        return apply_filters( 'bp_get_activity_thread_permalink', $link );
    23972830    }
     
    24002833 * Output the activity comment permalink.
    24012834 *
    2402  * @since BuddyPress (1.8)
     2835 * @since BuddyPress (1.8.0)
    24032836 *
    24042837 * @uses bp_get_activity_permalink_id()
     
    24102843     * Return the activity comment permalink.
    24112844     *
    2412      * @since BuddyPress (1.8)
     2845     * @since BuddyPress (1.8.0)
    24132846     *
    24142847     * @uses bp_activity_get_permalink()
     
    24332866        $link = bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity ) . $comment_link;
    24342867
     2868        /**
     2869         * Filters the activity comment permalink.
     2870         *
     2871         * @since BuddyPress (1.8.0)
     2872         *
     2873         * @param string $link Activity comment permalink.
     2874         * @param int    $comment_id ID for the current activity comment.
     2875         */
    24352876        return apply_filters( 'bp_get_activity_comment_permalink', $link, $comment_id );
    24362877    }
     
    24392880 * Output the activity favorite link.
    24402881 *
    2441  * @since BuddyPress (1.2)
     2882 * @since BuddyPress (1.2.0)
    24422883 *
    24432884 * @uses bp_get_activity_favorite_link()
     
    24502891     * Return the activity favorite link.
    24512892     *
    2452      * @since BuddyPress (1.2)
     2893     * @since BuddyPress (1.2.0)
    24532894     *
    24542895     * @global object $activities_template {@link BP_Activity_Template}
     
    24622903    function bp_get_activity_favorite_link() {
    24632904        global $activities_template;
     2905
     2906        /**
     2907         * Filters the activity favorite link.
     2908         *
     2909         * @since BuddyPress (1.2.0)
     2910         *
     2911         * @param string $value Constructed link for favoriting the activity comment.
     2912         */
    24642913        return apply_filters( 'bp_get_activity_favorite_link', wp_nonce_url( home_url( bp_get_activity_root_slug() . '/favorite/' . $activities_template->activity->id . '/' ), 'mark_favorite' ) );
    24652914    }
     
    24682917 * Output the activity unfavorite link.
    24692918 *
    2470  * @since BuddyPress (1.2)
     2919 * @since BuddyPress (1.2.0)
    24712920 *
    24722921 * @uses bp_get_activity_unfavorite_link()
     
    24792928     * Return the activity unfavorite link.
    24802929     *
    2481      * @since BuddyPress (1.2)
     2930     * @since BuddyPress (1.2.0)
    24822931     *
    24832932     * @global object $activities_template {@link BP_Activity_Template}
     
    24912940    function bp_get_activity_unfavorite_link() {
    24922941        global $activities_template;
     2942
     2943        /**
     2944         * Filters the activity unfavorite link.
     2945         *
     2946         * @since BuddyPress (1.2.0)
     2947         *
     2948         * @param string $value Constructed link for unfavoriting the activity comment.
     2949         */
    24932950        return apply_filters( 'bp_get_activity_unfavorite_link', wp_nonce_url( home_url( bp_get_activity_root_slug() . '/unfavorite/' . $activities_template->activity->id . '/' ), 'unmark_favorite' ) );
    24942951    }
     
    24972954 * Output the activity CSS class.
    24982955 *
    2499  * @since BuddyPress (1.0)
     2956 * @since BuddyPress (1.0.0)
    25002957 *
    25012958 * @uses bp_get_activity_css_class()
     
    25082965     * Return the current activity item's CSS class.
    25092966     *
    2510      * @since BuddyPress (1.0)
     2967     * @since BuddyPress (1.0.0)
    25112968     *
    25122969     * @global object $activities_template {@link BP_Activity_Template}
     
    25212978        global $activities_template;
    25222979
     2980        /**
     2981         * Filters the available mini activity actions available as CSS classes.
     2982         *
     2983         * @since BuddyPress (1.2.0)
     2984         *
     2985         * @param array $value Array of classes used to determine classes applied to HTML element.
     2986         */
    25232987        $mini_activity_actions = apply_filters( 'bp_activity_mini_activity_types', array(
    25242988            'friendship_accepted',
     
    25383002            $class .= ' has-comments';
    25393003
     3004        /**
     3005         * Filters the determined classes to add to the HTML element.
     3006         *
     3007         * @since BuddyPress (1.0.0)
     3008         *
     3009         * @param string $value Classes to be added to the HTML element.
     3010         */
    25403011        return apply_filters( 'bp_get_activity_css_class', $activities_template->activity->component . ' ' . $activities_template->activity->type . $class );
    25413012    }
     
    25443015 * Output the activity delete link.
    25453016 *
    2546  * @since BuddyPress (1.1)
     3017 * @since BuddyPress (1.1.0)
    25473018 *
    25483019 * @uses bp_get_activity_delete_link()
     
    25553026     * Return the activity delete link.
    25563027     *
    2557      * @since BuddyPress (1.1)
     3028     * @since BuddyPress (1.1.0)
    25583029     *
    25593030     * @global object $activities_template {@link BP_Activity_Template}
     
    25823053        $link = '<a href="' . esc_url( $url ) . '" class="button item-button bp-secondary-action ' . $class . ' confirm" rel="nofollow">' . __( 'Delete', 'buddypress' ) . '</a>';
    25833054
     3055        /**
     3056         * Filters the activity delete link.
     3057         *
     3058         * @since BuddyPress (1.1.0)
     3059         *
     3060         * @param string $link Activity delete HTML link.
     3061         */
    25843062        return apply_filters( 'bp_get_activity_delete_link', $link );
    25853063    }
     
    26253103        $url = wp_nonce_url( $url, 'bp_activity_delete_link' );
    26263104
     3105        /**
     3106         * Filters the activity delete URL.
     3107         *
     3108         * @since BuddyPress (2.1.0)
     3109         *
     3110         * @param string $url Activity delete URL.
     3111         */
    26273112        return apply_filters( 'bp_get_activity_delete_url', $url );
    26283113    }
     
    26313116 * Output the activity latest update link.
    26323117 *
    2633  * @since BuddyPress (1.2)
     3118 * @since BuddyPress (1.2.0)
    26343119 *
    26353120 * @see bp_get_activity_latest_update() for description of parameters.
     
    26453130     * Return the activity latest update link.
    26463131     *
    2647      * @since BuddyPress (1.2)
     3132     * @since BuddyPress (1.2.0)
    26483133     *
    26493134     * @uses bp_is_user_inactive()
     
    26713156            return false;
    26723157
     3158        /**
     3159         * Filters the latest update excerpt.
     3160         *
     3161         * @since BuddyPress (1.2.10)
     3162         *
     3163         * @param string $value The excerpt for the latest update.
     3164         */
    26733165        $latest_update = apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], 358 ) ) ) );
    26743166
     
    26803172        );
    26813173
     3174        /**
     3175         * Filters the latest update excerpt with view link appended to the end.
     3176         *
     3177         * @since BuddyPress (1.2.0)
     3178         *
     3179         * @param string $latest_update The latest update with "view" link appended to it.
     3180         */
    26823181        return apply_filters( 'bp_get_activity_latest_update', $latest_update );
    26833182    }
     
    26863185 * Output the activity filter links.
    26873186 *
    2688  * @since BuddyPress (1.1)
     3187 * @since BuddyPress (1.1.0)
    26893188 *
    26903189 * @see bp_get_activity_filter_links() for description of parameters.
     
    27003199     * Return the activity filter links.
    27013200     *
    2702      * @since BuddyPress (1.1)
     3201     * @since BuddyPress (1.1.0)
    27033202     *
    27043203     * @uses wp_parse_args()
     
    27683267            $link = add_query_arg( 'afilter', $component );
    27693268            $link = remove_query_arg( 'acpage' , $link );
     3269
     3270            /**
     3271             * Filters the activity filter link URL for the current activity component.
     3272             *
     3273             * @since BuddyPress (1.1.0)
     3274             *
     3275             * @param string $link The URL for the current component.
     3276             * @param string $component The current component getting links constructed for.
     3277             */
    27703278            $link = apply_filters( 'bp_get_activity_filter_link_href', $link, $component );
    27713279
     
    27783286            $component_links[] = '<' . $tag . ' id="afilter-clear"><a href="' . esc_attr( $link ) . '">' . __( 'Clear Filter', 'buddypress' ) . '</a></' . $tag . '>';
    27793287
     3288        /**
     3289         * Filters all of the constructed filter links.
     3290         *
     3291         * @since BuddyPress (1.1.0)
     3292         *
     3293         * @param string $value All of the links to be displayed to the user.
     3294         */
    27803295        return apply_filters( 'bp_get_activity_filter_links', implode( "\n", $component_links ) );
    27813296    }
     
    27843299 * Determine if a comment can be made on an activity item.
    27853300 *
    2786  * @since BuddyPress (1.2)
     3301 * @since BuddyPress (1.2.0)
    27873302 *
    27883303 * @global object $activities_template {@link BP_Activity_Template}
     
    28183333    }
    28193334
     3335    /**
     3336     * Filters whether a comment can be made on an activity item.
     3337     *
     3338     * @since BuddyPress (1.5.0)
     3339     *
     3340     * @param bool   $can_comment Status on if activity can be commented on.
     3341     * @param string $activity_action Current activity action being checked on.
     3342     */
    28203343    return apply_filters( 'bp_activity_can_comment', $can_comment, $activity_action );
    28213344}
     
    28573380    }
    28583381
     3382    /**
     3383     * Filters whether a comment can be made on an activity reply item.
     3384     *
     3385     * @since BuddyPress (1.5.0)
     3386     *
     3387     * @param bool   $can_comment Status on if activity reply can be commented on.
     3388     * @param string $comment Current comment being checked on.
     3389     */
    28593390    return (bool) apply_filters( 'bp_activity_can_comment_reply', $can_comment, $comment );
    28603391}
    28613392
    28623393/**
    2863  * Determine if an favorites are allowed.
     3394 * Determine whether favorites are allowed.
    28643395 *
    28653396 * Defaults to true, but can be modified by plugins.
    28663397 *
    2867  * @since BuddyPress (1.5)
     3398 * @since BuddyPress (1.5.0)
    28683399 *
    28693400 * @uses apply_filters() To call the 'bp_activity_can_favorite' hook.
     
    28723403 */
    28733404function bp_activity_can_favorite() {
     3405
     3406    /**
     3407     * Filters whether or not users can favorite activity items.
     3408     *
     3409     * @since BuddyPress (1.5.0)
     3410     *
     3411     * @param bool $value Whether or not favoriting is enabled.
     3412     */
    28743413    return apply_filters( 'bp_activity_can_favorite', true );
    28753414}
     
    28783417 * Output the total favorite count for a specified user.
    28793418 *
    2880  * @since BuddyPress (1.2)
     3419 * @since BuddyPress (1.2.0)
    28813420 *
    28823421 * @see bp_get_total_favorite_count_for_user() for description of parameters.
     
    28923431     * Return the total favorite count for a specified user.
    28933432     *
    2894      * @since BuddyPress (1.2)
     3433     * @since BuddyPress (1.2.0)
    28953434     *
    28963435     * @uses bp_activity_total_favorites_for_user()
     
    29123451            : false;
    29133452
     3453        /**
     3454         * Filters the total favorite count for a user.
     3455         *
     3456         * @since BuddyPress (1.2.0)
     3457         *
     3458         * @param int|bool $retval Total favorite count for a user. False on no favorites.
     3459         */
    29143460        return apply_filters( 'bp_get_total_favorite_count_for_user', $retval );
    29153461    }
     
    29193465 * Output the total mention count for a specified user.
    29203466 *
    2921  * @since BuddyPress (1.2)
     3467 * @since BuddyPress (1.2.0)
    29223468 *
    29233469 * @see bp_get_total_mention_count_for_user() for description of parameters.
     
    29333479     * Return the total mention count for a specified user.
    29343480     *
    2935      * @since BuddyPress (1.2)
     3481     * @since BuddyPress (1.2.0)
    29363482     *
    29373483     * @uses bp_get_user_meta()
     
    29533499            : false;
    29543500
     3501        /**
     3502         * Filters the total mention count for a user.
     3503         *
     3504         * @since BuddyPress (1.2.0)
     3505         *
     3506         * @param int|bool $retval Total mention count for a user. False on no mentions.
     3507         */
    29553508        return apply_filters( 'bp_get_total_mention_count_for_user', $retval );
    29563509    }
     
    29593512 * Output the public message link for displayed user.
    29603513 *
    2961  * @since BuddyPress (1.2)
     3514 * @since BuddyPress (1.2.0)
    29623515 *
    29633516 * @uses bp_get_send_public_message_link()
     
    29703523     * Return the public message link for the displayed user.
    29713524     *
    2972      * @since BuddyPress (1.2)
     3525     * @since BuddyPress (1.2.0)
    29733526     *
    29743527     * @uses is_user_logged_in()
     
    29923545        }
    29933546
     3547        /**
     3548         * Filters the public message link for the displayed user.
     3549         *
     3550         * @since BuddyPress (1.2.0)
     3551         *
     3552         * @param string $retval The URL for the public message link.
     3553         */
    29943554        return apply_filters( 'bp_get_send_public_message_link', $retval );
    29953555    }
     
    30253585 * Output the mentioned user display name.
    30263586 *
    3027  * @since BuddyPress (1.2)
     3587 * @since BuddyPress (1.2.0)
    30283588 *
    30293589 * @see bp_get_mentioned_user_display_name() for description of parameters.
     
    30393599     * Returns the mentioned user display name
    30403600     *
    3041      * @since BuddyPress (1.2)
     3601     * @since BuddyPress (1.2.0)
    30423602     *
    30433603     * @uses bp_core_get_user_displayname()
     
    30573617        }
    30583618
     3619        /**
     3620         * Filters the mentioned user display name.
     3621         *
     3622         * @since BuddyPress (1.2.0)
     3623         *
     3624         * @param string     $name Display name for the mentioned user.
     3625         * @param int|string $user_id_or_username User ID or username use for query.
     3626         */
    30593627        return apply_filters( 'bp_get_mentioned_user_display_name', $name, $user_id_or_username );
    30603628    }
     
    30633631 * Output button for sending a public message (an @-mention).
    30643632 *
    3065  * @since BuddyPress (1.2)
     3633 * @since BuddyPress (1.2.0)
    30663634 *
    30673635 * @see bp_get_send_public_message_button() for description of parameters.
     
    30773645     * Return button for sending a public message (an @-mention).
    30783646     *
    3079      * @since BuddyPress (1.2)
     3647     * @since BuddyPress (1.2.0)
    30803648     *
    30813649     * @uses bp_get_send_public_message_link()
     
    31153683        ) );
    31163684
    3117         // Filter and return the HTML button
     3685        /**
     3686         * Filters the public message button HTML.
     3687         *
     3688         * @since BuddyPress (1.2.10)
     3689         *
     3690         * @param array $r Array of arguments for the public message button HTML.
     3691         */
    31183692        return bp_get_button( apply_filters( 'bp_get_send_public_message_button', $r ) );
    31193693    }
     
    31223696 * Output the activity post form action.
    31233697 *
    3124  * @since BuddyPress (1.2)
     3698 * @since BuddyPress (1.2.0)
    31253699 *
    31263700 * @uses bp_get_activity_post_form_action()
     
    31333707     * Return the activity post form action.
    31343708     *
    3135      * @since BuddyPress (1.2)
     3709     * @since BuddyPress (1.2.0)
    31363710     *
    31373711     * @uses home_url()
     
    31423716     */
    31433717    function bp_get_activity_post_form_action() {
     3718
     3719        /**
     3720         * Filters the action url used for the activity post form.
     3721         *
     3722         * @since BuddyPress (1.2.0)
     3723         *
     3724         * @param string $value URL to be used for the activity post form.
     3725         */
    31443726        return apply_filters( 'bp_get_activity_post_form_action', home_url( bp_get_activity_root_slug() . '/post/' ) );
    31453727    }
     
    31533735 * <ul> or <ol> wrapper markup.
    31543736 *
    3155  * @since BuddyPress (1.7)
     3737 * @since BuddyPress (1.7.0)
    31563738 *
    31573739 * @see bp_core_fetch_avatar() for a description of arguments.
     
    32053787    }
    32063788
     3789    /**
     3790     * Filters the list of linked avatars for users who have commented on the current activity item.
     3791     *
     3792     * @since BuddyPress (1.7.0)
     3793     *
     3794     * @param string $retval HTML markup for the list of avatars.
     3795     * @param array  $r Array of arguments used for each avatar.
     3796     * @param array  $output Array of each avatar found, before imploded into single string.
     3797     */
    32073798    echo apply_filters( 'bp_activity_comments_user_avatars', $retval, $r, $output );
    32083799}
     
    32113802 * Return the IDs of every user who's left a comment on the current activity item.
    32123803 *
    3213  * @since BuddyPress (1.7)
     3804 * @since BuddyPress (1.7.0)
    32143805 *
    32153806 * @return bool|array An array of IDs, or false if none are found.
     
    32223813        : array();
    32233814
     3815    /**
     3816     * Filters the list of user IDs for the current activity item.
     3817     *
     3818     * @since BuddyPress (1.7.0)
     3819     *
     3820     * @param array $value Array of unique user IDs for the current activity item.
     3821     */
    32243822    return apply_filters( 'bp_activity_get_comments_user_ids', array_unique( $user_ids ) );
    32253823}
     
    32283826     * Recurse through all activity comments and collect the IDs of the users who wrote them.
    32293827     *
    3230      * @since BuddyPress (1.7)
     3828     * @since BuddyPress (1.7.0)
    32313829     *
    32323830     * @param array $comments Array of {@link BP_Activity_Activity} items.
     
    32583856        }
    32593857
    3260         // Filter and return
     3858        /**
     3859         * Filters the list of user IDs for the current activity comment item.
     3860         *
     3861         * @since BuddyPress (2.1.0)
     3862         *
     3863         * @param array $user_ids Array of user IDs for the current activity comment item.
     3864         * @param array $comments Array of comments being checked for user IDs.
     3865         */
    32613866        return apply_filters( 'bp_activity_recurse_comments_user_ids', $user_ids, $comments );
    32623867    }
     
    32783883     */
    32793884    function bp_get_displayed_user_mentionname() {
     3885
     3886        /**
     3887         * Filters the mentionname for the displayed user.
     3888         *
     3889         * @since BuddyPress (1.9.0)
     3890         *
     3891         * @param string $value The mentionanme for the displayed user.
     3892         */
    32803893        return apply_filters( 'bp_get_displayed_user_mentionname', bp_activity_get_user_mentionname( bp_displayed_user_id() ) );
    32813894    }
     
    32843897 * Echo a list of all registered activity types for use in dropdowns or checkbox lists.
    32853898 *
    3286  * @since BuddyPress (1.7)
     3899 * @since BuddyPress (1.7.0)
    32873900 *
    32883901 * @param string $output Optional. Either 'select' or 'checkbox'. Default: 'select'.
     
    33223935        }
    33233936
    3324         // Allow custom markup
     3937        /**
     3938         * Fires at the end of the listing of activity types.
     3939         *
     3940         * This is a variable action hook. The actual hook to use will depend on the output type specified.
     3941         * Two default hooks are bp_activity_types_list_select and bp_activity_types_list_checkbox.
     3942         *
     3943         * @since BuddyPress (1.7.0)
     3944         *
     3945         * @param array  $args Array of arguments passed into function.
     3946         * @param string $type Activity type being rendered in the output.
     3947         * @param string $description Description of the activity type being rendered.
     3948         */
    33253949        do_action( 'bp_activity_types_list_' . $output, $args, $type, $description );
    33263950    }
     
    33383962 * Output the sitewide activity feed link.
    33393963 *
    3340  * @since BuddyPress (1.0)
     3964 * @since BuddyPress (1.0.0)
    33413965 *
    33423966 * @uses bp_get_sitewide_activity_feed_link()
     
    33493973     * Returns the sitewide activity feed link.
    33503974     *
    3351      * @since BuddyPress (1.0)
     3975     * @since BuddyPress (1.0.0)
    33523976     *
    33533977     * @uses home_url()
     
    33583982     */
    33593983    function bp_get_sitewide_activity_feed_link() {
     3984
     3985        /**
     3986         * Filters the sidewide activity feed link.
     3987         *
     3988         * @since BuddyPress (1.0.0)
     3989         *
     3990         * @param string $value The feed link for sitewide activity.
     3991         */
    33603992        return apply_filters( 'bp_get_sitewide_activity_feed_link', bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/feed/' );
    33613993    }
     
    33643996 * Output the member activity feed link.
    33653997 *
    3366  * @since BuddyPress (1.2)
     3998 * @since BuddyPress (1.2.0)
    33673999 *
    33684000 * @uses bp_get_member_activity_feed_link()
     
    33754007 * Output the member activity feed link.
    33764008 *
    3377  * @since BuddyPress (1.0)
    3378  * @deprecated BuddyPress (1.2)
     4009 * @since BuddyPress (1.0.0)
     4010 * @deprecated BuddyPress (1.2.0)
    33794011 *
    33804012 * @todo properly deprecate in favor of bp_member_activity_feed_link().
     
    33874019     * Return the member activity feed link.
    33884020     *
    3389      * @since BuddyPress (1.2)
     4021     * @since BuddyPress (1.2.0)
    33904022     *
    33914023     * @uses bp_is_profile_component()
     
    34274059        }
    34284060
     4061        /**
     4062         * Filters the member activity feed link.
     4063         *
     4064         * @since BuddyPress (1.0.0)
     4065         *
     4066         * @param string $link URL for the member activity feed.
     4067         */
    34294068        return apply_filters( 'bp_get_activities_member_rss_link', $link );
    34304069    }
     
    34334072     * Return the member activity feed link.
    34344073     *
    3435      * @since BuddyPress (1.0)
    3436      * @deprecated BuddyPress (1.2)
     4074     * @since BuddyPress (1.0.0)
     4075     * @deprecated BuddyPress (1.2.0)
    34374076     *
    34384077     * @todo properly deprecate in favor of bp_get_member_activity_feed_link().
     
    34504089 * Outputs the activity feed item guid.
    34514090 *
    3452  * @since BuddyPress (1.0)
     4091 * @since BuddyPress (1.0.0)
    34534092 *
    34544093 * @uses bp_activity_feed_item_guid()
     
    34614100     * Returns the activity feed item guid.
    34624101     *
    3463      * @since BuddyPress (1.2)
     4102     * @since BuddyPress (1.2.0)
    34644103     *
    34654104     * @global object $activities_template {@link BP_Activity_Template}
     
    34714110        global $activities_template;
    34724111
     4112        /**
     4113         * Filters the activity feed item guid.
     4114         *
     4115         * @since BuddyPress (1.1.3)
     4116         *
     4117         * @param string $value Calculated md5 value for the activity feed item.
     4118         */
    34734119        return apply_filters( 'bp_get_activity_feed_item_guid', md5( $activities_template->activity->date_recorded . '-' . $activities_template->activity->content ) );
    34744120    }
     
    34774123 * Output the activity feed item title.
    34784124 *
    3479  * @since BuddyPress (1.0)
     4125 * @since BuddyPress (1.0.0)
    34804126 *
    34814127 * @uses bp_get_activity_feed_item_title()
     
    34884134     * Return the activity feed item title.
    34894135     *
    3490      * @since BuddyPress (1.0)
     4136     * @since BuddyPress (1.0.0)
    34914137     *
    34924138     * @global object $activities_template {@link BP_Activity_Template}
     
    35184164        }
    35194165
     4166        /**
     4167         * Filters the activity feed item title.
     4168         *
     4169         * @since BuddyPress (1.0.0)
     4170         *
     4171         * @param string $title The title for the activity feed item.
     4172         */
    35204173        return apply_filters( 'bp_get_activity_feed_item_title', $title );
    35214174    }
     
    35244177 * Output the activity feed item link
    35254178 *
    3526  * @since BuddyPress (1.0)
     4179 * @since BuddyPress (1.0.0)
    35274180 *
    35284181 * @uses bp_get_activity_feed_item_link()
     
    35354188     * Return the activity feed item link
    35364189     *
    3537      * @since BuddyPress (1.0)
     4190     * @since BuddyPress (1.0.0)
    35384191     *
    35394192     * @global object $activities_template {@link BP_Activity_Template}
     
    35494202            : '';
    35504203
     4204        /**
     4205         * Filters the activity feed item link.
     4206         *
     4207         * @since BuddyPress (1.0.0)
     4208         *
     4209         * @param string $retval The URL for the activity feed item.
     4210         */
    35514211        return apply_filters( 'bp_get_activity_feed_item_link', $retval );
    35524212    }
     
    35554215 * Output the activity feed item date.
    35564216 *
    3557  * @since BuddyPress (1.0)
     4217 * @since BuddyPress (1.0.0)
    35584218 *
    35594219 * @uses bp_get_activity_feed_item_date()
     
    35664226     * Return the activity feed item date.
    35674227     *
    3568      * @since BuddyPress (1.0)
     4228     * @since BuddyPress (1.0.0)
    35694229     *
    35704230     * @global object $activities_template {@link BP_Activity_Template}
     
    35804240            : '';
    35814241
     4242        /**
     4243         * Filters the activity feed item date.
     4244         *
     4245         * @since BuddyPress (1.0.0)
     4246         *
     4247         * @param string $retval The date for the activity feed item.
     4248         */
    35824249        return apply_filters( 'bp_get_activity_feed_item_date', $retval );
    35834250    }
     
    35864253 * Output the activity feed item description.
    35874254 *
    3588  * @since BuddyPress (1.0)
     4255 * @since BuddyPress (1.0.0)
    35894256 *
    35904257 * @uses bp_get_activity_feed_item_description()
     
    35974264     * Return the activity feed item description.
    35984265     *
    3599      * @since BuddyPress (1.0)
     4266     * @since BuddyPress (1.0.0)
    36004267     *
    36014268     * @global object $activities_template {@link BP_Activity_Template}
     
    36194286        }
    36204287
     4288        /**
     4289         * Filters the activity feed item description.
     4290         *
     4291         * @since BuddyPress (1.0.0)
     4292         *
     4293         * @param string $content The description for the activity feed item.
     4294         */
    36214295        return apply_filters( 'bp_get_activity_feed_item_description', $content );
    36224296    }
     
    36254299 * Template tag so we can hook activity feed to <head>.
    36264300 *
    3627  * @since BuddyPress (1.5)
     4301 * @since BuddyPress (1.5.0)
    36284302 *
    36294303 * @uses bloginfo()
     
    37034377
    37044378        /**
    3705          * Modify the filter options available in the activity filter dropdown.
    3706          *
    3707          * @since BuddyPress (2.1.0)
    3708          *
    3709          * @param array $filters Array of filter options for the given
    3710          *        context, in the following format:
    3711          *            $option_value => $option_name
    3712          * @param string $context Context for the filter. 'activity'
    3713          *        'member', 'member_groups', 'group'.
     4379         * Filters the options available in the activity filter dropdown.
     4380         *
     4381         * @since BuddyPress (2.2.0)
     4382         *
     4383         * @param array $filters Array of filter options for the given context, in the following format: $option_value => $option_name.
     4384         * @param string $context Context for the filter. 'activity', 'member', 'member_groups', 'group'.
    37144385         */
    37154386        $filters = apply_filters( 'bp_get_activity_show_filters_options', $filters, $context );
     
    37244395        }
    37254396
     4397        /**
     4398         * Filters the HTML markup result for the activity filter dropdown.
     4399         *
     4400         * @since BuddyPress (2.1.0)
     4401         *
     4402         * @param string $output HTML output for the activity filter dropdown.
     4403         * @param array  $filters Array of filter options for the given context, in the following format: $option_value => $option_name.
     4404         * @param string $context Context for the filter. 'activity', 'member', 'member_groups', 'group'.
     4405         */
    37264406        return apply_filters( 'bp_get_activity_show_filters', $output, $filters, $context );
    37274407    }
Note: See TracChangeset for help on using the changeset viewer.