The below instruction can help you add your items to Alert section in Admincp (Requires: phpFox version 4.6.0 or later.
admincp/alert
).- Add a plugin name with
admincp_alert_item
and add your item to array$aItems
.
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
<?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.', ]; |