Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $group_values = wbbpp_get_group_values( $group_name = 'bprm_grp_edu');
- // Code added in plugin to function the process.
- /*
- *
- * Function to return group values with respect to group name.
- */
- function wbbpp_get_group_values( $group_name ){
- $group_values = array();
- $user_id = get_current_user_id();
- $bprm_rs_data = array();
- $bprm_rs_data = get_user_meta( $user_id, 'wbbpp_userdata', true );
- if ( ! empty( $bprm_rs_data ) && is_array( $bprm_rs_data ) ) {
- if( isset( $bprm_rs_data[$group_name] ) ){
- $group_values = $bprm_rs_data[$group_name];
- }
- }
- return $group_values;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement