¡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.
admin_menu_settings
The admin_menu_settings
hook allows developers to add or modify menu items in the "Settings" dropdown menu of the admin interface.
renderDropdownMenu(
'settings',
'fas fa-sliders-h',
$lang['settings'],
$jkv['theme_admin'],
[
['url' => DynamicRewrite::parseUrl('settings'), 'label' => $lang['settings'], 'page' => 'settings'],
['url' => DynamicRewrite::parseUrl('social'), 'label' => $lang['site_social'], 'page' => 'social']
],
'admin_menu_settings'
);
This hook ensures flexibility for adding settings-related options to the "Settings" dropdown.
DynamicHooks::addHook('admin_menu_settings', function () {
return [
['url' => '/custom-settings', 'label' => 'Custom Settings']
];
}, 'settings_plugin_namespace');