• Hello,

    Is there any function or any API call, where I can get all completable page ids for user (by user id)?

    Till now I parse out the page ids from usermeta -> meta_value field, but now I moved to other membership platform (WishlistMember) and the meta_value string has some additional info in the begining {“0-site”:1588052868,

    So I have to reprogram my code.

    I am looking for more reliable solution that will work even if you will change the layout of the text in the meta_vale field in future updates. Is there any function which returns all completable page ids for user?

    Thank you very much in advance and keep up the good work!

    Best regards,
    Rene

Viewing 4 replies - 1 through 4 (of 4 total)
  • @renko There’s not currently an easy to access API call that’ll grab this for you, but that’s not a bad idea. We’ll see about adding it in future releases. For now, you’re doing exactly what I’d recommend. The “0-site” is just a timestamp for the latest activity on the site so you could ignore it. Apologies for breaking your code. We don’t plan on adding any more info to that meta_value, but will definitely see about adding a dedicated way to grab that info. Thanks!

    Thread Starter renko

    (@renko)

    Hello @zackgilbert thank you for your fast response, I really appreciate it!

    Ok, then I will do it like this, by parsing, until other solution comes out.
    Just one more question, to double-check. Is this “0-site” string present only at the beginning of the string where all completed page ids are collected? So is there only one occurrence of this additional string at the beginning or it can be added before each side id also?

    I am asking this, just to be sure to parse out the data correctly. If it is present only at the beginning I can just easily cut it off.

    Thank you once again.
    Cheers,
    Rene

    @renko Is should only be added once and at the beginning of the array. But I guess it’s possible that it could be located at the end (php arrays can be weird with their ordering). Give it a try and let us know if you run into any issues. But we’ll try to get you something more reliable soon.

    Thread Starter renko

    (@renko)

    @zackgilbert thank you very much for your answer ??

    I will try like this and hope for the best. I will definitely give you 5 stars now for your hard work for the plugin and amazing support.

    Thank you again and looking forward to new updates,
    Rene

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to get all completable pages of specific user’ is closed to new replies.