Thread Starter
zbl72
(@zbl72)
OK – Thanks for your tips. I’ve googled a bit more and I’ve managed to display a more precise array structure using get_var and print_r against my $du. Finally my working function looks like this:
function data_urodzenia_function() {
global $current_user;
$user_id = get_current_user_id();
$key = (string) '_lp_custom_register';
$du_array = get_user_meta( $user_id, $key, true );
$du = $du_array[5839468];
return ($du);