Skip to:
Content
Pages
Categories
Search
Top
Bottom

CPT into activity stream

  • @terydinho

    Participant

    Hi all, here is my dilema. I have a CPT set up in buddypress. I have this working through the front end, so that people can add/edit their entries.

    How would I go about adding said additions and edits to the main activity stream, so that you would see:

    “John smith added a new item…”

    Any help is greatly appreciated.

    Cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • @hnla

    Participant

    You will need to hook a function into ‘bp_activity_add()’ you’ll need to pass an array of parts such as bp->loggedin_user->id and your CPT as a registered BP componant plus time and date I think.

    The best place to research this is to look in the BP skeleton component for guidance .

    @terydinho

    Participant

    Thank you Hugo, I will take a look into the skeleton component. If anyone can add anything to this, it’d be most appreciated too :)

    Thanks

    @hnla

    Participant

    look in the file bp-example-activity.php in the buddypress-skeleton-component plugin it’s pretty well commented with all the info and params you need to pass

    @terydinho

    Participant

    Thank you again Hugo, I will do that

    @prometheus-fire

    Participant

    I started a new thread on this topic with a number of resources linked in it. I’m trying to do exactly what you are looking for but I need some help. Check the thread for more explanation: https://buddypress.org/community/groups/creating-extending/forum/topic/adding-custom-post-types-in-the-activity-stream-need-php-help/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CPT into activity stream’ is closed to new replies.
Skip to toolbar