How and where to use set_doc_id( $doc_id )?
-
I’m finding that the BP-Docs functions for attachments don’t work correctly for docs that are associated with groups, at least not he way that BuddyPress Docs In Groups makes that connection.
The issue seems to be that
get_doc_id()
on line 317 in buddypress-docs/includes/attachments.php, which works fine for site-wide docs, returns 0 for group-related docs.set_doc_id( $doc_id )
on line 310 should be able to provide a workaround. I’d like to try it but I’m stumped on how and where use it. How do I get the appropriate $doc_id into this function and where (e.g. what other file) do I send it from?Any pointers would be welcome.
Thanks!
- The topic ‘How and where to use set_doc_id( $doc_id )?’ is closed to new replies.