Scroll to top

How to delete data from database in wordpress?

Delete data from database

<?php

if(isset($_POST[“delete”])){
   global $wpdb;
        $result = $wpdb->get_results ( “DELETE FROM `wp_apindt_parameters` WHERE id=4;” );
}

?>

Leave a Reply

Your email address will not be published. Required fields are marked *