Skip to:
Content
Pages
Categories
Search
Top
Bottom

Update the activity item for a custom post type entry.


  • Maniou
    Participant

    @maniou

    Hello !

    I have a custom post-type registered on Buddypress.

    When I publish a new article on this custom post-type I use the filter bp_before_activity_add_parse_args to template $cpt[‘content’] and save it in the table wp_bp_activity the way i want it to display on the feed.

    When I update the post, bp_before_activity_add_parse_args is not fired ? this is normal ?
    And my activity content is updated with bp_activity_post_type_update(), so i’m losing my template.

    I don’t find a filter to keep my content the way I want when i update my custom post-type article. Is there a way to do that without editing bp_activity_post_type_update() ?

    Thank you for your help 🙂

Viewing 1 replies (of 1 total)

  • Maniou
    Participant

    @maniou

    I’m using for now the filter bp_activity_content_before_save to get my content template back after a custom post update.
    If there is a better way i will be happy to know 🙂

    Thank you !

Viewing 1 replies (of 1 total)
  • The topic ‘Update the activity item for a custom post type entry.’ is closed to new replies.
Skip to toolbar