You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!get_user_meta($user_id, 'cryptapi_pro_notice_dismissed')) {
137
+
$curr_page = get_current_screen()->base;
138
+
139
+
$allowed_pages = [
140
+
"dashboard",
141
+
"plugins"
142
+
];
143
+
if (in_array($curr_page, $allowed_pages)) {
144
+
?>
145
+
<div class="notice notice-info is-dismissible">
146
+
<p>
147
+
Meet CryptAPI Pro, a dashboard to suit all your needs. Get your API Key now: <a href="https://pro.cryptapi.io/" target="_blank">pro.cryptapi.io</a><br/>
148
+
<button style="text-decoration: none;" class="notice-dismiss cryptapi-pro-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
149
+
</p>
150
+
</div>
151
+
<script>
152
+
document.querySelector(".cryptapi-pro-dismiss").addEventListener("click", function () {
153
+
const urlParams = new URLSearchParams(window.location.search);
0 commit comments