CiviCRM 5.48.0, WordPress 5.9.3, PHP 7.4.29.
I'm trying to create a link based on content in the user's profile (custom field for VIN, link is to do a recall search on that VIN, but the possibilities here are pretty much endless). My first idea was to just insert some PHP snippet using the Insert PHP Code snippet WordPress plugin ... but any PHP function to get CiviCRM user context has eluded me so far. Doesn't seem to be part of what wp_get_current_user() returns either.
Then I had an idea to maybe just have a simple transform on the field... but that's eluded me as well.
Thought I found a possible way with the wp-civicrm-ux extension but that killed the site when I tried to install it (didn't spend any time figuring out why, wasn't sure if it would even solve my problem).
So, is there any way to access CiviCRM field content within WordPress to do custom manipulation of that data?
Thanks.
Michael