Archived topic
Hook "after_setup_theme" no longer works for removing action
1 reply · Started by Scott on February 16, 2022
Hi. I removed the copyright bar by following the instructions here: https://docs.generatepress.com/article/changing-the-copyright-message/#removing-the-entire-footer-bar. I discovered that doesn't work, it appears to run before the hook has been created. I made it work again by changing the WP hook from 'after_setup_theme' to 'init'. Thought you might want to update the doc.
Hi Scott,
I just tested the code and it works on my end.
But thanks for sharing your code :)