Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Modifying BP Class output with an add_action function


Dickson Waudo
Participant

@dicksonmedia

@nuprn1 thats a nice idea, I don’t know about the apply_filter though. the `$browse_sql` var is a new var that I initiate in just that function and within the scope of the if statement. Reasons being I added a whole other table to be queried in `$paged_groups` and `$total_groups` array being returned by the `get_active` function.

Its a small line of code, easily replaced on upgrade and works perfectly fine for me right now, I just wanted to be able to access, append/modify and object oriented class function from an outside function (that doesn’t make sense) lol. Something like whatever I have in my what if statement gets its own function and the arguments from the get_active function and processes my query after get active is complete (sorta), its not a private function so I can access it outside the BP_Groups_Group class, just don’t know how I can do an add_action or an apply_filter

Skip to toolbar