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;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment