dashboard_admin_notices

Description

Prints any dashboard error notices or messages that should be displayed via plugins or some other method.

Example

$app = \Liten\Liten::getInstance();

function my_plugin_admin_notice() {
    if(!ini_set('allow_url_fopen')) {
        echo _t('Your server does not allow "allow_url_fopen". Please contact your webmaster and ask them to enable this setting.');
    }
}
$app->hook->add_action('dashboard_admin_notices', 'my_plugin_admin_notice');

Change Log

Since 6.2.0

Source File

dashboard_admin_notices hook is located in app/views/_layouts/dashboard.php.