justintadlock / butterbean

A neat little post meta framework.
GNU General Public License v2.0
204 stars 31 forks source link

Introduce more filters and hooks #19

Open slaFFik opened 7 years ago

slaFFik commented 7 years ago

I'm talking about something like this:

https://github.com/CaerCam/butterbean/commit/b8213dd26aab1dd859b4ea5b7b8ff512926e6025

Also, each class-control-...php can have own type-specific hooks as well, and/or main class-control.php.

justintadlock commented 7 years ago

Any hooks added need to have a specific purpose. So, any that you want to see, let's hear a reasoning for that specific hook.

I like hooks, but I also avoid adding them when at all possible. Often, there are existing methods of doing something that I'd consider better than using a hook.

caercam commented 7 years ago

Oh, missed that mention. I added this hook on my fork to output some custom content right before the metabox; it's only for look'n'feel purpose so I wouldn't recommend adding this to the core.