I'm using the `pagenote` package to put my endnotes at the end of every chapter. For example, see the accepted answer for this question: [How does one get endnotes at the end of every chapter?](https://tex.stackexchange.com/questions/9475/how-does-one-get-endnotes-at-the-end-of-every-chapter)

In short:

```
\chapter{First Chapter}
 some text
\printnotes*

```

How can I renew the `\chapter` command so that I don't have to include `\printnotes*` at the end of every chapter?

I don't want to make the `\printnotes*` command happen before the `\chapter` command because then I'll get notes before the first chapter (which doesn't make sense).