• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Deeper Scenery

Further up and further in

  • Home
  • Blog
  • Code
  • Tutorials
  • Privacy Policy
You are here: Home / Ideas / Advanced WordPress Hooks

Ideas · Published: September 15, 2018 · Modified: September 15, 2018

Advanced WordPress Hooks

This is just a small idea. For more information, see this blog post.

I’ve posted before about using hooks in WordPress. I think it would be good to write a more advanced post on the topic, including things such as:

  • Why you usually shouldn’t use anonymous functions (aka “Closures”) attached to hooks
  • Why you sometimes should use anonymous functions attached to hooks
  • Best practices for using hooks with class objects

Somewhat related was an article I read recently: https://inpsyde.com/en/remove-wordpress-hooks/

Filed Under: Ideas

Previous Post: « Manually Running Shortcodes
Next Post: Git Commit Signing with Keybase.io »

Reader Interactions

Comments

  1. Sal Ferrarello says

    September 17, 2018 at 11:50

    These code examples from Brady Vercher may also be relevant in fleshing out this post, https://github.com/bradyvercher/wp-hook-examples.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Subscribe to jeremypry.com

Enter your email address to subscribe to this site and receive notifications of new posts by email.

  • Home
  • Blog
  • Code
  • Ideas
  • Tutorial
  • Gifts
  • Privacy Policy

Copyright © 2025 · JPry Showcase Pro on Genesis Framework · WordPress · Log in