Cyber Week Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Resolved] Hooks, are they the right way to go?

Home Forums Support Hooks, are they the right way to go?

  • This topic has 2 replies, 2 voices, and was last updated 2 years ago by Pete.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #51181
    Pete

    I’ve been reading these 2 posts. What do you think about them. If i’m not wrong it’s suggesting child themes over custom hooks?

    #51220
    Tom
    Lead Developer
    Lead Developer

    Hi Pete,

    I’ve read those articles as well, and somewhat agree.

    However, I’m still not convinced that copying files from the parent theme and placing them in your child theme then making changes is the best idea.

    What if new features are added to that parent file? The user who has placed it in their child theme will miss out on these new features.

    I personally prefer using hooks – the only downside I see to hooks is that if you change themes, your hooks will be lost. However, most additions to hooks (besides Google Analytics and similar code) are theme-specific, so even that isn’t a huge deal.

    Of course, the choice is with the user. You can use the hooks, or go the child theme route – it’s completely up to you 🙂

    Thanks!

    #737316
    Pete

    resolved

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