Skip to:
Content
Pages
Categories
Search
Top
Bottom

Modify activity loop to display only activies base on the publish date


  • asokaaso2
    Participant

    @asokaaso2

    Using ‘bp_after_has_activities_parse_args’, I am trying to create a post scheduler on buddypress (Will be glad if there’s an existing one) where if the publish date is greater than the date today, it will not show on the user who is viewing the profile. On the ‘bp_after_has_activities_parse_args’ filter, I saw a value that says ‘date_query’ I’m not sure if it’s the one I’m looking for. Do you have any idea how can I do this? Much appreciated if someone can help me since I’m new to Buddypress.

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    afaik, date_query is the argument you should use.
    See WP_Date_Query::__construct()} for syntax.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar