0
Q:

get_user_meta

<?php
	$meta_data = get_user_meta($user_id, $key, $single);
?>
0
global $current_user; 
 
get_currentuserinfo();
 
if ( $current_user ) {
    $permission = get_user_meta( $current_user->ID, 'some_meta' , true );
     
    if ( ! empty( $permission ) ) {
        // do stuff
    }
}
// works for both array and single values
0

New to Communities?

Join the community