Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Requires: phpFox version 4.6.0 or later.

The below

...

instructions 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:

Code Block
php
php

<?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.',
];