Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

  • kevinbrands
    Participant

    @kevinbrands

    I’ve checked if this could be because of a plugin or theme conflict. But even with a clean install and the TwentyTwenty theme, it still doesn’t work.

    Removing the feeds like this would be the best way in my opinion.

    Is there any way to update/change this code so it works?


    kevinbrands
    Participant

    @kevinbrands

    Maybe I can elaborate on the problem some more:

    If I set the links and view the menu, the URL’s of the user that sets the menu are being used. For all other users. That’s not what we want to achieve.

    We want to achieve that, for example, the profile link is dynamic and changes to the right URL for the logged in user.

    Is there someone who had the same problem and has a fix?

    Thanks in advance!
    -Kevin


    kevinbrands
    Participant

    @kevinbrands

    Thanks!

    I’ve found a way to fix this. I use the bp_activity_post_type_unpublish function to remove the activity after it is added, in combination with the save_post hook where the post meta I need is available.

    Topic can be closed.


    kevinbrands
    Participant

    @kevinbrands

    I’ve been working on this and made a little progress. But now I have the following problem:

    I used ‘bp_activity_before_save’ to get access to the activity object, so I’m able to set the ‘type’ to false and prevent the activity from being saved.

    I want to use a custom meta value to allow / disallow an activity from being saved. But when I use ‘bp_activity_before_save’, I cannot get the post meta values from the associated post.

    Is there a way / a hook or something that runs later than ‘bp_activity_before_save’, but still runs in time to stop the activity from being saved?

Viewing 4 replies - 1 through 4 (of 4 total)
Skip to toolbar