PluginProbe
EasyFonts – Host Google Fonts Locally, Fast & Auto-Optimize, GDPR Compliant / 1.0.0
EasyFonts – Host Google Fonts Locally, Fast & Auto-Optimize, GDPR Compliant v1.0.0
2.0.4 2.0.3 2.0.2 2.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2 1.3 2.0.0
easyfonts / inc / notices.php

notices.php in EasyFonts – Host Google Fonts Locally, Fast & Auto-Optimize, GDPR Compliant 1.0.0, at inc/notices.php

32 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // If this file is called directly, abort.
4 if (!defined("WPINC")){
5 die;
6 }
7
8
9 function easyfonts_check_incompatible_plugins() {
10 // Check if the 'Local Google Fonts' plugin is active
11 if(is_plugin_active('local-google-fonts/local-google-fonts.php')) {
12 // Display a notice to deactivate the plugin
13 ?>
14 <div class="notice notice-error is-dismissible">
15 <p>The 'Local Google Fonts' plugin is active and may cause conflicts with the Easy Fonts plugin. Please deactivate the 'Local Google Fonts' plugin to avoid any issues.</p>
16 </div>
17 <?php
18 }
19
20 // Check if the 'Host Webfonts Local' plugin is active
21 if(is_plugin_active('host-webfonts-local/host-webfonts-local.php')) {
22 // Display a notice to deactivate the plugin
23 ?>
24 <div class="notice notice-error is-dismissible">
25 <p>The 'OMGF' plugin is active and may cause conflicts with the Easy Fonts plugin. Please deactivate the 'OMGF' plugin to avoid any issues.</p>
26 </div>
27 <?php
28 }
29 }
30
31 // Display the notices on the options page
32 add_action('admin_notices', 'easyfonts_check_incompatible_plugins');