Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Requires: phpFox version 4.6.0 or later.

The below instruction can help you add your items to Alert section in Admincp (admincp/alert).

  • Add a plugin name with admincp_alert_item and add your item to array $aItems.

Example:

<?php
// filename admincp_alert_item.php

$aItems[] =  [
    //link of the page that allow admin can manage your alert items
    'link'=> \Phpfox::getLib('url')->make('admincp/blog/pendding'),
    //message you want to show in alert section
    'message'=> 'You have 12 pending blog posts.',
];
  • No labels