I didn’t look at the dev code, it was from the one I downloaded from www.ads-software.com
I noticed that there was a commented out admin_bar hook after I added in my function.
Should that be uncommented in the version downloaded from www.ads-software.com?