12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Dec 3, 2021

Custom Function for Getting User Field Value when using Meta Box

Sridhar Katakam

This members-only tutorial provides the steps to register a custom function for retrieving the value of the specified user field creating using Meta Box.

Use case: Use the built-in Dynamic Data condition of Oxygen to conditionally output elements depending on whether a checkbox in the user profile has been ticked or not for the currently logged-in user.

Step 1

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: [Function] Get User Field Value

Code:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $599 one-time).

Already a member? Log in below or here.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right