I found this topic
https://whmcs.community/topic/283057-adding-links-to-shortcut-area/
which is so awesome and allows to create a link to the wp-admin of the client domain
<?php
use WHMCS\View\Menu\Item as MenuItem;
add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar)
{
$service = Menu::context('service');
$domain = $service->domain;
$servertype = $service->product->servertype;
# Not cPanel, no links added
if ($servertype!="cpanel"){
return;
}
if (!is_null($primarySidebar->getChild('Service Details Actions'))) {
$primarySidebar->getChild('Service Details Actions')
->addChild('wplink', array(
'label' => 'Link To WordPress',
'uri' => 'https://'.$domain.'/wp-admin',
'order' => 200,
));
}
});
BUT how to do it if the client has more than one domain?
let's say that my client has 5 domains and each domain has it's own WordPress install
so how to add all of them to the navbar menu as a sub menu?
PS: all customers have domains registered with GoDaddy. I host WordPress websites for them only.
Thank you ♥