You can use the function xprofile_get_field_data( $field, $user_id, $multi_format)
* @param mixed $field The ID of the field, or the $name of the field.
* @param int $user_id The ID of the user.
* @param string $multi_format How should array data be returned? 'comma' if you want a
* comma-separated string; 'array' if you want an array.
Related Posts:
- Manually set global $post vars with an ID, in order to use template tags
- Is it possible to define a template for a custom post type within a plugin independent of the active theme?
- Hook if somebody saves plugin options?
- Output before and after the loop
- How to override normal WordPress search in Buddypress? [closed]
- Define Function in functions.php or plugin and call in theme loop
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- How can I include a setting that has a variable number of values in a settings page using register_setting?
- Saving Plugin settings to the database
- How can I let users to access plugin functions based on roles?
- check for the current screen
- Fastest way to loop through all posts?
- How does WordPress ensure plugins run at the same time and how does it solve a plugin’s dependency on another one?
- Plugin set default setting value when it activated
- post expire after x days
- Stop the form of beign submitted on “Save changes” custom option page
- Settings API – input always updates over validation
- redirect on theme switch – WordPress
- Possible to add a language file to a plugin without adding .po/.mo files to plugin directory?
- Can’t get plugin settings page to save data
- Two people sharing user in WordPress [closed]
- Why this global array is returning NULL from a callback function
- Display content from custom post type if match to main post category
- Wp favorite posts get user favorites in profile using buddypress [closed]
- how do i remove posts from a WP_Query so the pagination is right?
- Override global query results without hooks
- rt media plugin count not working in shortcode [closed]
- Use wordpress functions in another PHP file
- How to get specific setting by settings_fields()?
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- Add An Activity Filter By User Id In Buddypress Plugin
- Buddypress – Add the post_id in the bp_activity_add function
- After plugin activation all users marked as Spam
- Insert content of a post into another
- Checkbox conflict in my custom plugin admin page
- Problem with the Loop – want to limit the access to three free articles
- Bulk update all posts from plugin settings screen
- media page returnig to 404 in rtmedia [closed]
- Implementing an image hosting website using WordPress? [closed]
- Change the display of Settings API (do_settings_sections)
- Settings API saved values not getting shown in the dropdownbox
- WordPress Plugin manipulate have_posts()
- Calling the_excerpt from inside a plugin template file
- Recent posts per category loop?
- Can I use register_settings and unregister_setting once the settings page has loaded?
- Duplicate New User Registration notices (BuddyPress and bbPress both installed)
- Bulk update wordpress posts
- Loop in elementor custom widget not working
- How to save plugin custom settings page fields
- How to override the Buddypress bp-members folder’s file?
- Get post content from outside the loop with plugin shortcode usability
- BuddyPress activity on edit post for a CPT
- How to change php variable value using wp setting api
- 500 error when updating plugin option
- Price comparison table based on Custom Post Type?
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- Remember the Meta Value With Radio Buttons
- Polldaddy doesn’t show up on own theme
- How to enable WPML in BuddyPress Multilingual Plugin in a single website? [closed]
- Add custom PHP and HTML to the_content()
- How to modify the Loop from a plugin (instead of a theme)
- BuddyPress admin bar links are broken [closed]
- Using BuddyPress > ‘Register page’ [closed]
- Editable select options in quick edit OR in plugin settings
- How to save Setting pages data to the database?
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- HTTP Error upload ( localhost )
- update_option_{$option} not working (do function after options are saved)
- Can’t add new plugin or themes on a wordpress multisite network from the primary site as administrator. Error: ERR_TOO_MANY_REDIRECTS
- How to save the option’s new values plus old value without overwrite old one
- Limiting buddy press features based on membership level (PMPro)
- How do I add languages?
- There was a problem uploading the cover image in buddypress, while uploading profile image?
- WordPress Boilerplate Plugin doesn’t see callback functions for add_settings_field and add_settings_section
- How do I add a textarea (multirow) option to my WordPress plugin?
- Place content inside the Post Loop
- Buddypress Member list not showing admin and mods
- WordPress Settings – Custom Button actions
- WordPress 4.1 plugin only save 1 field to database
- Cannot reset a loop in a plugin template
- Creating a register settings class that supports extended classes
- Unable to Retrieve Setting Value for my Plugin
- Displaying image from a repeatable group
- Multiselect value in wp_query
- Advanced Custom Fields (ACF) Plugin – Random Image in Sidebar
- ‘all’ hook and add_action issue (class based plugin)
- Fake Single WordPress Post (Page) Loop
- Edit Buddypress Groups Activity Page Text [closed]
- how do you point ‘screen_function’ to a function in the same class? [closed]
- How do i use postMash to order posts in a custom loop?
- Extend my plugin settings with hooks
- I want to remove the register/login WordPress top bar from my website
- Getting Post Permalink Outside of Loop Not Working
- Trying to display posts but getting the pages as output
- How to dispaly post informations (such as titles) in an admin plugin menu page?
- BuddyPress group filter
- Different login and logout for wp-admin while using buddypress
- How to display content depending on the Woocommerce Product Category
- move setting data from wordpress api to codestar freamwork
- FacetWP custom display based on post type [closed]