I basically have a contact form which generates a PDF output using a third-party plugin. The plugin allows for the use of shortcodes to add content to the final PDF.
I want to be able to display the avatar image of the currently logged in user so the PDF is customized for them and not just a default look. The shortcode below works great and if I manually change the user_id it will changes the image perfectly to whom ever that ID belongs to.
However I can't seem to find for the shortcode to dynamically change the user_id number to represent who's actually logged in ... or at least i've not understood clearly the route I need to take from other support posts.
[user_profile_avatar size="original" user_id="1"]
Can someone kindly guide me how to do this and where I need to place code etc. Would be much appreciated. I have some coding knowledge but still learning. I've tired the plugin developers wordpress support page but they haven't answered anyone's request in months.