skip to Main Content

Add and show errors saving a post WordPress

For my CPT I use some extra meta data. I want verify the meta data and if there is something wrong show an error. With some research I try this code add_action('save_post', function($post_id){ if(isset($_POST['joLink'])){ if($_POST['joLink'] !== ''){ update_post_meta($post_id, 'joLink', $_POST['joLink']);…

VIEW QUESTION
Back To Top
Search