My plugin uses a metabox to save post meta. I have three option in the metabox. Everything is saving/updating/deleting correctly except for this:
add_post_meta( $post_id, $meta_key_duration, $new_meta_value_duration, true );
If I echo out the values right before this call:
echo $post_id.' '.$meta_key_duration.' '.$new_meta_value_duration;
I get:
52 expDuration 10
this is correct since I chose "10" as the value to be saved. The database is showing the post_id and meta_id correctly but the value isn't being saved.
add_post_meta( $post_id, $meta_key_duration, "4", true );
isn't saving "4" into the DB either