BuddyPress::activity_action( string $action, object $activity )
Description #
Activity action.
Parameters #
- $actionstring (Required) Action.
- $activityobject (Required) Activity object.
Source #
File: addons/buddypress/buddypress.php
public function activity_action( $action, $activity ) { if ( in_array( $activity->type, array( 'new_question', 'new_answer' ), true ) ) { return str_replace( 'AP_CPT_LINK', get_permalink( $activity->secondary_item_id ), $action ); } return $action; }
Expand full source code Collapse full source code View on GitHub: addons/buddypress/buddypress.php:383
Add your comment