Changeset 10077 for trunk/src/bp-activity/bp-activity-actions.php
- Timestamp:
- 08/31/2015 06:51:35 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-actions.php
r9843 r10077 1 1 <?php 2 3 2 /** 4 3 * Action functions are exactly the same as screen functions, however they do … … 16 15 * Allow core components and dependent plugins to register activity actions. 17 16 * 18 * @since BuddyPress (1.2.0)17 * @since 1.2.0 19 18 * 20 19 * @uses do_action() To call 'bp_register_activity_actions' hook. … … 25 24 * Fires on bp_init to allow core components and dependent plugins to register activity actions. 26 25 * 27 * @since BuddyPress (1.2.0)26 * @since 1.2.0 28 27 */ 29 28 do_action( 'bp_register_activity_actions' ); … … 34 33 * Catch and route requests for single activity item permalinks. 35 34 * 36 * @since BuddyPress (1.2.0)35 * @since 1.2.0 37 36 * 38 37 * @uses bp_is_activity_component() … … 105 104 * Filter the intended redirect url before the redirect occurs for the single activity item. 106 105 * 107 * @since BuddyPress (1.2.2)106 * @since 1.2.2 108 107 * 109 108 * @param array Array with url to redirect to and activity related to the redirect. … … 121 120 * Delete specific activity item and redirect to previous page. 122 121 * 123 * @since BuddyPress (1.1.0)122 * @since 1.1.0 124 123 * 125 124 * @param int $activity_id Activity id to be deleted. Defaults to 0. … … 164 163 * Fires before the deletion so plugins can still fetch information about it. 165 164 * 166 * @since BuddyPress (1.5.0)165 * @since 1.5.0 167 166 * 168 167 * @param int $activity_id The activity ID. … … 180 179 * Fires after the deletion so plugins can act afterwards based on the activity. 181 180 * 182 * @since BuddyPress (1.1.0)181 * @since 1.1.0 183 182 * 184 183 * @param int $activity_id The activity ID. … … 198 197 * Mark specific activity item as spam and redirect to previous page. 199 198 * 200 * @since BuddyPress (1.6.0)199 * @since 1.6.0 201 200 * 202 201 * @param int $activity_id Activity id to be deleted. Defaults to 0. … … 233 232 * Fires before the marking activity as spam so plugins can modify things if they want to. 234 233 * 235 * @since BuddyPress (1.6.0)234 * @since 1.6.0 236 235 * 237 236 * @param int $activity_id Activity ID to be marked as spam. … … 250 249 * Fires after the marking activity as spam so plugins can act afterwards based on the activity. 251 250 * 252 * @since BuddyPress (1.6.0)251 * @since 1.6.0 253 252 * 254 253 * @param int $activity_id Activity ID that was marked as spam. … … 268 267 * Post user/group activity update. 269 268 * 270 * @since BuddyPress (1.2.0)269 * @since 1.2.0 271 270 * 272 271 * @uses is_user_logged_in() … … 298 297 * Filters the content provided in the activity input field. 299 298 * 300 * @since BuddyPress (1.2.0)299 * @since 1.2.0 301 300 * 302 301 * @param string $value Activity message being posted. … … 309 308 * Filters the item type that the activity update should be associated with. 310 309 * 311 * @since BuddyPress (1.2.0)310 * @since 1.2.0 312 311 * 313 312 * @param string $value Item type to associate with. … … 321 320 * Filters what component the activity is being to. 322 321 * 323 * @since BuddyPress (1.2.0)322 * @since 1.2.0 324 323 * 325 324 * @param string $value Chosen component to post activity to. … … 349 348 * Filters activity object for BuddyPress core and plugin authors before posting activity update. 350 349 * 351 * @since BuddyPress (1.2.0)350 * @since 1.2.0 352 351 * 353 352 * @param string $object Activity item being associated to. … … 372 371 * Post new activity comment. 373 372 * 374 * @since BuddyPress (1.2.0)373 * @since 1.2.0 375 374 * 376 375 * @uses is_user_logged_in() … … 398 397 * Filters the activity ID a comment will be in reply to. 399 398 * 400 * @since BuddyPress (1.2.0)399 * @since 1.2.0 401 400 * 402 401 * @param string $value ID of the activity being replied to. … … 407 406 * Filters the comment content for a comment reply. 408 407 * 409 * @since BuddyPress (1.2.0)408 * @since 1.2.0 410 409 * 411 410 * @param string $value Comment content being posted. … … 436 435 * Mark activity as favorite. 437 436 * 438 * @since BuddyPress (1.2.0)437 * @since 1.2.0 439 438 * 440 439 * @uses is_user_logged_in() … … 470 469 * Remove activity from favorites. 471 470 * 472 * @since BuddyPress (1.2.0)471 * @since 1.2.0 473 472 * 474 473 * @uses is_user_logged_in() … … 504 503 * Load the sitewide activity feed. 505 504 * 506 * @since BuddyPress (1.0.0)505 * @since 1.0.0 507 506 * 508 507 * @uses bp_is_activity_component() … … 536 535 * Load a user's personal activity feed. 537 536 * 538 * @since BuddyPress (1.0.0)537 * @since 1.0.0 539 538 * 540 539 * @uses bp_is_user_activity() … … 566 565 * Load a user's friends' activity feed. 567 566 * 568 * @since BuddyPress (1.0.0)567 * @since 1.0.0 569 568 * 570 569 * @uses bp_is_active() … … 599 598 * Load the activity feed for a user's groups. 600 599 * 601 * @since BuddyPress (1.2.0)600 * @since 1.2.0 602 601 * 603 602 * @uses bp_is_active() … … 640 639 * Load a user's @mentions feed. 641 640 * 642 * @since BuddyPress (1.2.0)641 * @since 1.2.0 643 642 * 644 643 * @uses bp_is_user_activity() … … 677 676 * Load a user's favorites feed. 678 677 * 679 * @since BuddyPress (1.2.0)678 * @since 1.2.0 680 679 * 681 680 * @uses bp_is_user_activity() … … 712 711 * Loads Akismet filtering for activity. 713 712 * 714 * @since BuddyPress (1.6.0)715 * @since BuddyPress (2.3.0)We only support Akismet 3+.713 * @since 1.6.0 714 * @since 2.3.0 We only support Akismet 3+. 716 715 */ 717 716 function bp_activity_setup_akismet() { … … 736 735 * Filters if BuddyPress Activity Akismet support has been disabled by another plugin. 737 736 * 738 * @since BuddyPress (1.6.0)737 * @since 1.6.0 739 738 * 740 739 * @param bool $value Return value of bp_is_akismet_active boolean function. … … 751 750 * AJAX endpoint for Suggestions API lookups. 752 751 * 753 * @since BuddyPress (2.1.0)752 * @since 2.1.0 754 753 */ 755 754 function bp_ajax_get_suggestions() { … … 783 782 * Detect a change in post type status, and initiate an activity update if necessary. 784 783 * 785 * @since BuddyPress (2.2.0)784 * @since 2.2.0 786 785 * 787 786 * @todo Support untrashing better. … … 817 816 * being untrashed. 818 817 * 819 * @since BuddyPress (2.2.0)818 * @since 2.2.0 820 819 * 821 820 * @param WP_Post $post Post data.
Note: See TracChangeset
for help on using the changeset viewer.