function save_services_meta($post_id, $post) { // Exits script if autosave, if nonces don't match, or if revision if (metaSaveSetup($post_id) !== true) { return; } // all the items metaSave('_needsBeforeStart'); // Save the details // Required Fields $ourProcess['required'] = array('title'); // save it metaSave('_ourProcess', $ourProcess); }
function metaOptionArraySaveSetup($value) { if (!empty($value)) { // have to return it instead of save it right there return metaSave($value, array('data' => 'option')); } else { return; } }