function admin_enqueue_scripts($hook) { if ($hook == 'plugins.php' || $hook == 'post-new.php' || $hook == 'post-edit.php' || $hook == 'index.php') { self::$ok_to_show_error = true; } self::$on_settings_screen = $hook == 'settings_page_sharepress'; self::$ok_to_show_support_here = in_array($hook, array('settings_page_sharepress', 'plugins.php', 'post-new.php', 'post.php', 'index.php')); }