Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
switch($values[0]) {
case 'Basic Package':
$post_data['post_status'] = 'draft';
break;
case 'Premium Package':
$post_data['post_status'] = 'publish';
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment