• Hi,
    I need PHP source code or SQL query to retrieve ID of member UM directory for current user.
    I have been looking for several hours the solution! Is there a simple solution?
    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • HI,

    everyone

    i am creating a mobile app and access all user on app

    some issue in rest api
    what should i do

    I can’t get it find my public key and token?

    i am access the link.

    https://my-site.com/um-api/get.user/ . open in browser.

    out put is

    {
    “error”: “You must specify both a token and API key!”
    }

    please help me.

    thank you

    hi,

    @fraudon

    Sorry for this conversion by mistake send by me ..

    extremely sorry

    @fraudon

    Are you looking for the database id of the directory? If so, this is stored as a post:

    SELECT post_id from wp_postmeta
    where post_id in(select id FROM wp_posts WHERE post_type='um_directory')
    and meta_key='_um_roles' and meta_value LIKE '%<the name of your role here>%'
    ;

    Notice the post_type – also note the meta_value where you are doing a LIKE or exact match to the role.

    Is this what you are looking for?

    Thread Starter fraudon

    (@fraudon)

    Thank you Clratliff!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Retrieve member directory ID’ is closed to new replies.