Once I asked a question concerning “admit (to) doing” I received the following answer from YOU: --> “In many cases, the 'to' is optional. It is, however, usually omitted before an action verb (particularly in a criminal context), while it is often preserved before a stative verb, such as 'be' or 'have'.”

As for “confess (to) doing”, occasionally I meet the verb without “to”. Is it the same case as “admit (to) doing) ?