Title: Using custom fields in other plugins
Last modified: December 10, 2018

---

# Using custom fields in other plugins

 *  Resolved [vroom66](https://wordpress.org/support/users/vroom66/)
 * (@vroom66)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/using-custom-fields-in-other-plugins/)
 * Hello I’m trying to pull a couple of fields out to use in another plugin which
   generates a spreadsheet for the resulting information.
 * I apologise because I have no idea what I’m doing, but at the moment the spreadsheet
   is generating the columns but returning no information.
 * This is what I’ve used so far:
 * um_fetch_user( get_current_user_id() );
    echo um_user(‘grade’);
 * Where grade is the identifier for the custom field – can anyone help me with 
   what I need to put in?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [SuitePlugins](https://wordpress.org/support/users/suiteplugins/)
 * (@suiteplugins)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/using-custom-fields-in-other-plugins/#post-11012071)
 * What you are looking for is `um_filtered_value`
 * You can use it like this.
 *     ```
       um_fetch_user( get_current_user_id() );
       echo um_filtered_value('grade');
       ```
   
 * If you are looking to get the raw data without any special formatting, you can
   use get_user_meta
 *     ```
       echo get_user_meta(get_current_user_id(), 'grade', true);
       ```
   
 * I hope this helps. If it does, don’t forget to hit Solved.
 *  Thread Starter [vroom66](https://wordpress.org/support/users/vroom66/)
 * (@vroom66)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/using-custom-fields-in-other-plugins/#post-11049581)
 * Hello thanks for your help but unfortunately this still doesn’t work. Following
   is what I have:
 *  public function __construct( $user_id ){
    $this->custom1 = get_user_meta(get_current_user_id(),‘
   grade_19’, true);
 * It’s creating the column in the spreadsheet and on the forms just fine but not
   pulling the data in for some reason.
 * Any clues?
 *  [SuitePlugins](https://wordpress.org/support/users/suiteplugins/)
 * (@suiteplugins)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/using-custom-fields-in-other-plugins/#post-11049609)
 * Shouldn’t you be passing the $user_id instead of getting the current logged in
   user like the following:
 * `$this->custom1 = get_user_meta( $user_id, 'grade_19', true );`
 *  Thread Starter [vroom66](https://wordpress.org/support/users/vroom66/)
 * (@vroom66)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/using-custom-fields-in-other-plugins/#post-11049665)
 * You absolute legend! That worked! If you had any idea how long I’ve spent on 
   this – thank you so very much!
    -  This reply was modified 7 years, 5 months ago by [vroom66](https://wordpress.org/support/users/vroom66/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Using custom fields in other plugins’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [vroom66](https://wordpress.org/support/users/vroom66/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/using-custom-fields-in-other-plugins/#post-11049665)
 * Status: resolved