User Meta question or pointer for the right direction

Support General User Meta question or pointer for the right direction

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #41828
    markw@myopiaismental.com[email protected]
    Participant

    Hi all!

    Here's what I want to do:

    User watches a video that runs in PrestoPlayer Plugin. If the user watches the full video (100%) I would like to update metadata to show/check off that they've completed the video.

    I have a custom post type that I display all the links to the posts with the videos but I would customize the page to also have a check icon that is displayed if they have watched the video. I believe I can do this dynamically using Kadence Blocks Pro.

    I can use Uncanny Automator to automate the checking to see if the user watched the full video.

    Trigger: If user watches x video to 100%
    Action: update user meta

    Does this sound like a good way to do this and use Meta box to create the user meta fields?
    or
    Would you suggest another way to go about this?

    Thanks,
    Mark W.

    #41837
    PeterPeter
    Moderator

    Hello Mark,

    I'm not sure if it is the best way to update the user meta but if a third-party plugin can help you to check if the user watched the full video, you can create a callback function and update the user meta by using the function:
    - update_user_meta() https://developer.wordpress.org/reference/functions/update_user_meta/
    - or rwmb_set_meta() https://docs.metabox.io/functions/rwmb-set-meta/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.