Admin HelpDesk Dashboard -- Show "Awaiting User Response" by default

Discussion in 'Customization & add-ons' started by hebrew, Jan 19, 2021.

  1. hebrew

    hebrew New Member

    Joined:
    Aug 3, 2009
    Messages:
    9
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Hello,

    You can do it with the following code snippet in site.php file:
    https://docs.amember.com/docs/Site_php_file

    PHP:
    Am_Di::getInstance()->hook->add(Am_Event::ADMIN_MENU, function(Am_Event $e){
        
    /** @var Am_Navigation_Admin $m */
        
    $m $e->getMenu();
        if (
    $p $m->findOneById('helpdesk-ticket')) {
            
    $p->setUri($e->getDi()->url('helpdesk/admin'false));
        }
    });
    hebrew likes this.
  3. hebrew

    hebrew New Member

    Joined:
    Aug 3, 2009
    Messages:
    9
    Works! THANK YOU!
    caesar likes this.

Share This Page