Powdered Bread.com

Database Queries

<?php
$user_id = get_current_user_id(); 
$phone = get_user_meta( $user_id, 'phone_number', true );  //int id, string metaTitle, bool return single value

//update metadata
update_user_meta( $user_id, 'phone_number', '0123-456-7890' );
?>