Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Porting wp plugins using post ID to use Group ID – broaden buddypress group functionality


nit3watch
Participant

@nit3watch

I thought of trying to make a function that would take preference over the build in wordpress $id.

something like:

function id()
$id = $bp->groups->current_group->id

but doesn’t take effect, is there some way to take priority like with css !important ?

Edit: instead of trying the above I changed all instances of $id to my own function $group_rate
Though I just need a little help with the function and after which I dont see why it shouldn’t all work :D

Here’s my version, my function’s on line 7-10 : http://pastebin.com/dR74qbqM

Skip to toolbar