WordPress\ORM\BaseModel::delete PHP Méthode

delete() public méthode

Delete the model from the database. Returns true if it was successful or false if it was not.
public delete ( ) : boolean
Résultat boolean
    public function delete()
    {
        global $wpdb;
        return $wpdb->delete(static::get_table(), array(static::get_primary_key() => $this->{static::get_primary_key()}));
    }