Skip to:
Content
Pages
Categories
Search
Top
Bottom

Where is the filter “bp_before_activity_add_parse_args”?


  • Hendrik Lersch
    Participant

    @riddler84

    Maybe I’m blind, but i’m unable to find the filter bp_before_activity_add_parse_args anywhere in the BuddyPress files. Neither on github, nor my editor file search.

    It is mentioned here, but i can’t find it. Nevertheless it works.. but why? 😉 I need to know more about the context of the filter.

    function record_cpt_activity_content( $cpt ) {
     
        if ( 'new_book' === $cpt['type'] ) {
         
            $cpt['content'] = 'what you need';
        }
         
     
        return $cpt;
    }
    add_filter('bp_before_activity_add_parse_args', 'record_cpt_activity_content');
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar