Jump to content

I need a hook to remove "Portal Home"


Activex

Recommended Posts

58 minutes ago, Activex said:

I need a hook to remove "Portal Home" (remove all: name, link, all) or  change the url

to remove it...

https://github.com/Katamaze/WHMCS-Free-Scripts/blob/master/hooks/RemovePortalHomeBreadcrumb.php

<?php

add_hook('ClientAreaPage', 1, function($vars)
{
	unset($vars['breadcrumb'][0]);
	return array('breadcrumb' => $vars['breadcrumb']);
});

to change the link would involve not unsetting the first element of the $breadcrumb array in the hook, but changing it's link value.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated