How to modify members activity feed ?
Hello, some informations about my installation :
– WP v.5.9
– BP 10.0.0
– Theme Buddy-x 4.3.1
– PHP 8.1.0
There is no other plugin : I try to create a functionnality for a client that can let you be able to repost an activity from other members on your own member profile only.
The thing is, I actually can insert into the database via ajax method the ID of any activity and the date of reshare. Then I can display on the member profile an array with all the shared activity and informations about them (all columns from the database wp_bp_activity table).
Now, I want to implement them inside the feed. My idea is to intercept the result of the ajax (bp_has_activities( bp_ajax_querystring( ‘activity’ )) that – apparently – return a JSON data Object. Then insert the shared activities with the date of repost, reorder all these activities by dates and display the complete new feed.
Intercept -> insert the shared activities -> reorder by dates -> display.
But I don’t know how I can intercept this query. In fact, even if I delete the activity-loop.php file it’s still the same, I have no control on the feed.
Anyone has an idea about this ? How to add these shared activities to a member feed ?
- You must be logged in to reply to this topic.