I want to update the post meta of a custom post type when a user updates the custom post type's title in the admin backend. Something like the pseudo code below;
if ((get_the_title() !== $val_in_title_field) && (Publish == true))
{
update_post_meta( $id, 'custom_field', '' );
}
I am not clear on how to check what is passed from the title field when a user clicks publish and all how to check if a uer has clicked publish.