includes/staticwp-admin.class.php
public static function displayNotices()
    {
        if ($notices = get_option('staticwp_deferred_admin_notices')) {
            foreach ($notices as $notice) {
                $message = $notice;
                $type = 'updated';

                if (is_array($notice)) {
                    $message = isset($notice['message']) ? $notice['message'] : '';
                    $type = isset($notice['type']) ? $notice['type'] : $type;
                }

                echo '<div class="' . $type . '"><p>' . $message . '</p></div>';
            }
            delete_option('staticwp_deferred_admin_notices');
        }
    }
public static function displayNotices()
    {
        if ($notices = get_option('staticwp_deferred_admin_notices')) {
            foreach ($notices as $notice) {
                $message = $notice;
                $type = 'updated';

                if (is_array($notice)) {
                    $message = isset($notice['message']) ? $notice['message'] : '';
                    $type = isset($notice['type']) ? $notice['type'] : $type;
                }

                echo '<div class="' . $type . '"><p>' . $message . '</p></div>';
            }
            delete_option('staticwp_deferred_admin_notices');
        }
    }
public static function displayNotices ( ) { if ( $ notices = get_option ( 'staticwp_deferred_admin_notices' ) ) { foreach ( $ notices as $ notice ) { $ message = $ notice ; $ type = 'updated' ; if ( is_array ( $ notice ) ) { $ message = isset ( $ notice [ 'message' ] ) ? $ notice [ 'message' ] : '' ; $ type = isset ( $ notice [ 'type' ] ) ? $ notice [ 'type' ] : $ type ; } echo '<div class="' . $ type . '"><p>' . $ message . '</p></div>' ; } delete_option ( 'staticwp_deferred_admin_notices' ) ; } }
Displays admin notices.

@since 1.3.0

@return void
Displays admin notices .