diff --git a/class/admin.class.php b/class/admin.class.php index a4e75e6..581df37 100644 --- a/class/admin.class.php +++ b/class/admin.class.php @@ -118,6 +118,8 @@ class CWV3Admin { if ( isset( $_POST['cwv3_auth'] ) ) { $cwv3_checkbox = sanitize_text_field( $_POST['cwv3_auth'] ); update_post_meta( $post_id, 'cwv3_auth', $cwv3_checkbox ); + } else { + delete_post_meta( $post_id, 'cwv3_auth' ); } }