Garrett Hyder replied to the topic How to get the page ID associated with a component in the forum Miscellaneous 1 year ago
Glad it’s still working.
Looking at the original Trac ticket there is now a bp_core_get_directory_page_id() method for this which takes the $component as a param or defaults to bp_current_component().
Just wanted to follow-up for others looking to this as a solution… there’s now an official method which is probably more appropriate.
@garrett-eclipse active 1 day, 15 hours ago