¡Hola, amigos! I’m Señor FAQ, the mustached maestro of questions and answers! With my trusty glasses and a book of endless wisdom, I turn dudas into solutions. Soy el héroe de los curiosos and the champion of clarity.
on_template_header_css
The on_template_header_css
hook allows developers to inject CSS into the header of the template.
This is useful for adding custom stylesheets or inline CSS required by plugins or customizations.
$headerCSS = DynamicHooks::executeHook('on_template_header_css', true);
if (!empty($headerCSS)) {
echo implode("\n", $headerCSS);
}
This hook aggregates all registered CSS callbacks and outputs them in the template's header section.
DynamicHooks::addHook('on_template_header_css', function () {
return ['your_css_file','another_css_file'];
}, 'custom_plugin');