modify update_post_meta function in functions.php