Jackson Tong Posted December 20, 2021 Share Posted December 20, 2021 add_hook('ClientAreaSecondarySidebar', 1, function($secondarySidebar) { $shortcuts = $secondarySidebar->getChild('Client Shortcuts'); $shortcuts->addChild( 'Google', array( 'name' => 'Google', 'label' => 'Google', 'uri' => 'https://google.com', 'order' => 10, 'icon' => 'fa-rocket', ) ) ->setAttribute('target', '_blank') // working ->setAttribute('rel', 'noreferrer'); // not working }); with this code I can only see target attribute in my a tag. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.