Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Question about register_callback
I just learned about register_callbacks today and I wanted to use it on my project.
It will be used with zem_contact_reborn’s API.
My question is does defining many register_callbacks inefficient? I think only 2% or less of my visitors will ever use the contact form, but I think the callback will be registered on every page load. Is this a problem?
Should I make a plugin tag to register this callback only on the affected page?
Thanks for helping me learn about this powerful feature.
Offline
Re: Question about register_callback
Having a few callbacks will have little or no impact on performance.
Offline
Re: Question about register_callback
Thanks! The whole textpattern system is pretty darn amazing.
I will go off and add my callback and not worry about slowdowns then. :)
Offline