static function updatePrivacyOptions()
{
if (check_ajax_referer('pb-update-book-privacy')) {
$post_id = absint($_POST['post_id']);
if (current_user_can('edit_post', $post_id)) {
$post_status = $_POST['post_status'];
$my_post = array();
$my_post['ID'] = $post_id;
$my_post['post_status'] = $post_status;
wp_update_post($my_post);
static::deleteBookObjectCache();
}
}
}