WordPress\ORM\BaseModel::delete PHP Метод

delete() публичный Метод

Delete the model from the database. Returns true if it was successful or false if it was not.
public delete ( ) : boolean
Результат boolean
    public function delete()
    {
        global $wpdb;
        return $wpdb->delete(static::get_table(), array(static::get_primary_key() => $this->{static::get_primary_key()}));
    }