{"action":"closed","issue":{"url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/160","labels_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/160/comments","events_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/160/events","html_url":"https://github.com/WebDevStudios/CMB2/issues/160","id":55499974,"number":160,"title":"User Profile metaboxes not updating on save. ","user":{"login":"katielacy","id":6114021,"avatar_url":"https://avatars.githubusercontent.com/u/6114021?v=3","gravatar_id":"","url":"https://api.github.com/users/katielacy","html_url":"https://github.com/katielacy","followers_url":"https://api.github.com/users/katielacy/followers","following_url":"https://api.github.com/users/katielacy/following{/other_user}","gists_url":"https://api.github.com/users/katielacy/gists{/gist_id}","starred_url":"https://api.github.com/users/katielacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katielacy/subscriptions","organizations_url":"https://api.github.com/users/katielacy/orgs","repos_url":"https://api.github.com/users/katielacy/repos","events_url":"https://api.github.com/users/katielacy/events{/privacy}","received_events_url":"https://api.github.com/users/katielacy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-26T16:04:07Z","updated_at":"2015-01-28T10:57:59Z","closed_at":"2015-01-28T10:57:59Z","body":"Hey Guys, \r\n\r\nLove this plugin such a time saver!\r\n\r\nI have a issue with the user profile. When I update the fields are not be validated. Very strange! Could you please help I am using your latest version on CMB2 and wordpress 4.1\r\n\r\nHere is my code ....\r\n\r\n```php\r\nfunction cmb2_user_metabox( array $meta_boxes ) {\r\n$args2 = array( 'post_type' => 'int_contacts', 'posts_per_page' => 100 ,\r\n    'tax_query' => array(\r\n\t\tarray(\r\n\t\t\t'taxonomy' => 'section',\r\n\t\t\t'field'    => 'slug',\r\n\t\t\t'terms'    => 'depot',\r\n\t\t),\r\n\t), );\r\n$loop = new WP_Query( $args2 );\r\n$depot = array();\r\nwhile ( $loop->have_posts() ) : $loop->the_post();\r\n global $post;\r\n $depot[$post->ID] = get_the_title();\r\nendwhile;\r\n    // Start with an underscore to hide fields from custom fields list\r\n    $prefix = '_eko_';\r\n\r\n    /**\r\n     * Sample metabox to demonstrate each field type included\r\n     */\r\n    $meta_boxes['user_metabox'] = array(\r\n        'id'               => 'user_edit',\r\n\t\t'title'            => __( 'User Profile Metabox', 'cmb2' ),\r\n\t\t'object_types'     => array( 'user' ), // Tells CMB to use user_meta vs post_meta\r\n\t\t'show_names'       => true,\r\n\t\t'new_user_section' => 'add-new-user', // where form will show on new user page. 'add-existing-user' is only other valid option.\r\n\t\t'fields'           => array(\r\n           array(\r\n                'name' => 'Adler and Allan Company Information',\r\n                'desc' => 'Please enter your information below',\r\n                'type' => 'title',\r\n                'id'   => $prefix . 'adler_information'\r\n            ),\r\n            array(\r\n                'name'    => 'Unique Employee Number',\r\n                'desc'    => '',\r\n                'default' => '',\r\n                'id'      => $prefix . 'employee_number',\r\n                'type'    => 'text'\r\n            ),\r\n            array(\r\n                'name'    => 'GMEE Record ID',\r\n                'desc'    => '',\r\n                'default' => '',\r\n                'id'      => $prefix . 'gmee_number',\r\n                'type'    => 'text'\r\n            ),\r\n            array(\r\n                'name'    => 'Depot',\r\n                'desc'    => '',\r\n                'default' => '',\r\n                'id'      => $prefix . 'depot',\r\n                'type' => 'pw_select',\r\n                'sanitization_cb' => 'pw_select2_sanitise',\r\n                'options' => $depot,\r\n            ),\r\n            array(\r\n                'name'    => 'Divison',\r\n                'desc'    => '',\r\n                'default' => '',\r\n                'id'      => $prefix . 'divison',\r\n                'type'    => 'text'\r\n            ),\r\n            array(\r\n                'name'    => 'Group Email',\r\n                'desc'    => '',\r\n                'default' => '',\r\n                'id'      => $prefix . 'group_email',\r\n                'type'    => 'text_email'\r\n            ),\r\n            \r\n          ),\r\n   );\r\n\r\n    // Add other metaboxes as needed\r\n\r\n    return $meta_boxes;\r\n}\r\n```"}}