Disable and Remove Google Fonts - Version 1.4.9

Version Description

Download this release

Release Info

Developer DannyCooper
Plugin Icon wp plugin Disable and Remove Google Fonts
Version 1.4.9
Comparing to
See all releases

Code changes from version 1.4.8 to 1.4.9

changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 1.4.8 =
2
 
3
  * Add welcome page and test instructions.
1
+ = 1.4.9 =
2
+
3
+ * Add compatibility for X theme.
4
+
5
  = 1.4.8 =
6
 
7
  * Add welcome page and test instructions.
disable-remove-google-fonts.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Optimize frontend performance by disabling Google Fonts. GDPR-friendly.
6
  * Author: Fonts Plugin
7
  * Author URI: https://fontsplugin.com
8
- * Version: 1.4.8
9
  * License: GPLv2 or later
10
  * License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
11
  *
@@ -31,7 +31,7 @@ if ( ! defined( 'DRGF_PLUGIN_FILE' ) ) {
31
  }
32
 
33
  if ( ! defined( 'DRGF_VERSION' ) ) {
34
- define( 'DRGF_VERSION', '1.4.8' );
35
  }
36
 
37
  if ( ! defined( 'DRGF_DIR_PATH' ) ) {
5
  * Description: Optimize frontend performance by disabling Google Fonts. GDPR-friendly.
6
  * Author: Fonts Plugin
7
  * Author URI: https://fontsplugin.com
8
+ * Version: 1.4.9
9
  * License: GPLv2 or later
10
  * License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
11
  *
31
  }
32
 
33
  if ( ! defined( 'DRGF_VERSION' ) ) {
34
+ define( 'DRGF_VERSION', '1.4.9' );
35
  }
36
 
37
  if ( ! defined( 'DRGF_DIR_PATH' ) ) {
inc/remove-google-fonts.php CHANGED
@@ -78,7 +78,6 @@ function drgf_dequeueu_fonts() {
78
 
79
  remove_action('wp_head', 'appointment_load_google_font');
80
 
81
-
82
  }
83
 
84
  add_action( 'wp_enqueue_scripts', 'drgf_dequeueu_fonts', PHP_INT_MAX );
@@ -235,3 +234,8 @@ add_action( 'wp_footer', 'drgf_dequeue_wpbakery_fonts' );
235
  */
236
  add_filter( 'kadence_theme_google_fonts_array', '__return_empty_array' );
237
  add_filter( 'kadence_print_google_fonts', '__return_false' );
 
 
 
 
 
78
 
79
  remove_action('wp_head', 'appointment_load_google_font');
80
 
 
81
  }
82
 
83
  add_action( 'wp_enqueue_scripts', 'drgf_dequeueu_fonts', PHP_INT_MAX );
234
  */
235
  add_filter( 'kadence_theme_google_fonts_array', '__return_empty_array' );
236
  add_filter( 'kadence_print_google_fonts', '__return_false' );
237
+
238
+ /**
239
+ * Dequeue Google Fonts loaded by X theme.
240
+ */
241
+ add_filter( 'cs_load_google_fonts', '__return_false' );