Skip to:
Content
Pages
Categories
Search
Top
Bottom

filtering activity before it is posted

  • Avatar of dswright
    dswright
    Participant

    @dswd

    Hi,
    I am trying to modify the activity post before it is posted.
    I am currently trying to use the bp_activity_add filter but I believe this is after the activity is posted.

    Is there a filter that I can get into before the activity is posted

    eg any mention of company leads to the about us page

Viewing 1 replies (of 1 total)
  • Avatar of meg@info
    meg@info
    Participant

    @megainfo

    Hi

    You can use the filter bp_activity_after_save

    
    add_filter('bp_activity_after_save', 'bp_my_activity_filter');
    
    /**
     * New Filter for activity stream
     *
     */
    function p_my_activity_filter( &$activity ) {
    }
    
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.