I’m not sure I understand what you mean by “posted a new taxonomy”?
Let’s take an example : Custom Tags for your custom post type.
if the question is : “is it possible to have an activity generated each time a custom post type tag is created ?”
My reply is it’s not included in core. And by the way, creating a post tag doesn’t generate an activity.
Post types activities is easing the process of generating activities when an item of a ‘buddypress-activity’ supported post type is added.
We still need to work on generating activitiies when a comment is made on a post type.
About generating an activity when a taxonomy (hierarchical or not) is created is an interesting idea but seems inmho specific to a given post type. For example i have difficulties seeing an interest for post categories or post tags (but why not afterall!) but i do see an interest for one of my plugin. So i will explore this for the plugin i have in mind 😉
Thanks for your answer. Actually I use an event plugin generating custom post types for each event. As I’m posting events with different categories (training / race / etc…) so I use tags.
So my goal was to post activities differently since it’s for a training or a race.
Like : “someone posted a new TRAINING SESSION” / “someone posted a new RACE”.
I’m not sure I’m clear.
Gatelli
@gatelli
So the question is ‘How can i edit the action string eg: someone wrote a new event, if the event was posted having a race tag or a training session tag ?’
is this correct ?
If so, you’ll need to filter ‘bp_activity_custom_post_type_post_action’, get the secondary item id which is the post type id, fetch the tag for this post type id and override the action string.
Yes it’s correct,
do you have an example of code I could put in bp-custom.php ? I’m not fluent in coding…
Thank you so much !