• Resolved dcfuture

    (@dcfuture)


    Documentation gives a very simple command to get the profile id, but the pages I need the ID for are not profile pages (unless I misunderstand the definition of that).

    I have custom pages like a calendar page and a data chart page that would use the profile ID to get the right person’s information. That data is collected by a google form that I would insert data into custom database tables I made, then select via that profiles ID.

    When using that google form, I would duplicate the profile ID into my own custom customer table and then use that ID (or even validating both) when loading my custom pages.

    • This topic was modified 5 years, 10 months ago by dcfuture.
Viewing 1 replies (of 1 total)
  • @dcfuture

    The profile ID is the same as user ID in the database. So if you are looking for the currently logged in user ID, then you can use

    get_current_user_id()

    If this doesn’t help, let me know.

Viewing 1 replies (of 1 total)
  • The topic ‘How can I get the profile ID on non-profile pages?’ is closed to new replies.