$result_check = $wpdb->insert( $table, array("name" => $name, "email" => $email)); if($result_check){ //successfully inserted. }else{ //something gone wrong }