Site logo

[Support request] Hook “after_setup_theme” no longer works for removing action

Home Forums Support [Support request] Hook “after_setup_theme” no longer works for removing action

Home Forums Support Hook “after_setup_theme” no longer works for removing action

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2121874
    Scott

    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.

    #2121888
    Ying
    Staff
    Customer Support

    Hi Scott,

    I just tested the code and it works on my end.

    But thanks for sharing your code 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.