$wpdb- delete code example
Example 1: wordpress wpdb
<?php
// 1st Method - Declaring $wpdb as global and using it to execute an SQL query statement that returns a PHP object
global $wpdb;
$results = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}options WHERE option_id = 1", OBJECT );
Example 2: wordpress wpdb delete
wpdb::delete( string $table, array $where, array|string $where_format = null )