Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Can’t seem to get BP 2.2’s Post Types Activities working

@hnla

Participant

>I had already worked out that ‘component_id’ => buddypress()->activity->id was wrong

No it’s not wrong, buddypress()->activity->id == ‘activity’, in replacing it with a hardcoded string you could possibly cause issues if activities id did change, where it will cause issues is if BP isn’t loaded then buddypress() will fail, a hardcoded value is safer in that respect.

>but it’s interesting to find that the source of the problem was that the codex example was (and still is, btw) hooking into the wrong action.

Again it’s not necessarily hooking into wrong action ‘bp_init’ does work, I used it recently on a register_post_type where issues arose on BP update as init ran before bp had re-activated, although that later priority may have solved that one.

So the reference to codex entry still being wrong is debatable, possibly it ought to be updated, and on that score the codex like the rest of the BP project is all volunteer work and any member has the ability to add, update codex pages if they see somethings wrong

Skip to toolbar