Private message with shortcode if user_id=”” is dynamic data from ACF?
-
I have a website with profiles of people. Each person has a detail page (profile page). Ultimate Member (private messages) is also used.
I would now like to realize that if someone looks at the selected profile page of a person from the frontend, he can contact this person via a button (“Send private message”). A link would also be feasible. Since my system uses dynamic pages (ACF, Advanced Custom Fields), it would be possible to pass the user name and ID from the (selected) profilpage. Would this be possible with Ultimate Member?
So I can not use the usual shortcode like [ultimatemember_message_button user_id=”123″] because the user_id=”” is dynamic value and depends on the profile page (detail page) what is selected from out the overview page (directory page) both are not direct pages from Ultimate Member.
The user_id=”xxxx” is also stored in ACF (Advanced Custom Fields).Thanks for any help.
- The topic ‘Private message with shortcode if user_id=”” is dynamic data from ACF?’ is closed to new replies.