Is there a signal that runs for every page load maybe a template loading function that I can hook from a plugin to call $ost->addExtraHeader as the plugin bootstrap is too early and $ost isn't set yet.

osTicket does not have Templating currently, so I do not think so. But I will ask a dev to make sure.

@AdamDempsey

We don't have one for every page load (that'd be crazy) but we do have quite a bit of signals in the codebase. You can search our codebase on Github for all of the available Signals:

Note:
With the release of v1.14.1 we added quite a bit of new signals so I'm sure you'll find at least one of these helpful.

Note:
I just remembered that Github only allows you to search the develop branch which is 1.12.x currently so you won't find all available Signals there. Your best bet is to download v1.14.1 and search the local files for Signal::send(.

Cheers.

Write a Reply...