AnsPress_BP_Hooks::activity_action( $action, $activity )
Description #
Activity action.
Source #
File: addons/free/buddypress.php
public static function activity_action( $action, $activity ) { if ( in_array( $activity->type, [ '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/free/buddypress.php:303
Add your comment