<?php defined('ABSPATH') OR die('Direct Access Restricted!');

function o365_plugin_admin_notice(){
    if( isset($_GET['o365_token_message']) && !empty($_GET['o365_token_message']) && isset($_GET['o365_token_message_type']) && !empty($_GET['o365_token_message_type']) ){
    ?>
    <div class="notice is-dismissible notice-<?php echo $_GET['o365_token_message_type']; ?>" >
        <p><?php _e( $_GET['o365_token_message'], 'o365' ); ?></p>
    </div>


    <?php
    }
}