¡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.
after_render_admin
The after_render_admin
hook is triggered after the admin panel template is rendered.
It allows developers to execute logic, log events, or append additional content after the admin interface has loaded.
DynamicHooks::executeHook('after_render_admin', false, $jkv, $lang);
This hook is executed using the DynamicHooks::executeHook()
method with the following parameters:
$jkv
- The configuration array containing JScms settings.$lang
- The active language for the admin panel.
DynamicHooks::addHook('after_render_admin', function($jkv, $lang) {
// Example: Append a custom script after the admin panel is rendered
echo '<script src="/admin-custom.js"></script>';
// Log a message after rendering the admin panel
error_log('Admin panel rendered successfully for language: ' . $lang);
}, 'admin_plugin');