Version Description
- Improvement: Compatibility for Astra Global Palette and Typography Preset options.
Download this release
Release Info
Developer | brainstormworg |
Plugin | Astra Customizer Reset |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- class-astra-theme-customizer-reset.php +6 -2
- readme.txt +5 -2
class-astra-theme-customizer-reset.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Astra Customizer Reset
|
4 |
* Plugin URI: https://wpastra.com/
|
5 |
* Description: Reset the Astra theme customizer options from customizer interface.
|
6 |
-
* Version: 1.0.
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: http://www.brainstormforce.com
|
9 |
* Text Domain: astra-customizer-reset
|
@@ -16,7 +16,7 @@ if ( 'astra' !== get_template() ) {
|
|
16 |
}
|
17 |
|
18 |
define( 'ASTRA_THEME_CUSTOMIZER_RESET_URI', plugins_url( '/', __FILE__ ) );
|
19 |
-
define( 'ASTRA_CUSTOMIZER_VERSION', '1.0.
|
20 |
/**
|
21 |
* Astra Customizer Reset
|
22 |
*
|
@@ -112,6 +112,10 @@ if ( ! class_exists( 'Astra_Theme_Customizer_Reset' ) ) :
|
|
112 |
} else {
|
113 |
delete_option( ASTRA_THEME_SETTINGS );
|
114 |
}
|
|
|
|
|
|
|
|
|
115 |
}
|
116 |
|
117 |
wp_send_json_error( 'pass' );
|
3 |
* Plugin Name: Astra Customizer Reset
|
4 |
* Plugin URI: https://wpastra.com/
|
5 |
* Description: Reset the Astra theme customizer options from customizer interface.
|
6 |
+
* Version: 1.0.5
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: http://www.brainstormforce.com
|
9 |
* Text Domain: astra-customizer-reset
|
16 |
}
|
17 |
|
18 |
define( 'ASTRA_THEME_CUSTOMIZER_RESET_URI', plugins_url( '/', __FILE__ ) );
|
19 |
+
define( 'ASTRA_CUSTOMIZER_VERSION', '1.0.5' );
|
20 |
/**
|
21 |
* Astra Customizer Reset
|
22 |
*
|
112 |
} else {
|
113 |
delete_option( ASTRA_THEME_SETTINGS );
|
114 |
}
|
115 |
+
|
116 |
+
// Delete Global Color Palette and Typography Preset options.
|
117 |
+
delete_option( 'astra-typography-presets' );
|
118 |
+
delete_option( 'astra-color-palettes' );
|
119 |
}
|
120 |
|
121 |
wp_send_json_error( 'pass' );
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== Astra Customizer Reset ===
|
2 |
Contributors: brainstormforce
|
3 |
Tags: astra theme, customizer reset, reset astra customizer, reset astra theme
|
4 |
-
Tested up to:
|
5 |
-
Stable tag: 1.0.
|
6 |
Requires at least: 4.4
|
7 |
|
8 |
This plugin helps to reset customizer settings for the Astra theme in a single click.
|
@@ -43,6 +43,9 @@ No! Once you reset the customizer settings you can not revert it back. You will
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
|
|
|
|
|
|
46 |
= 1.0.4 =
|
47 |
- Fix: White label settings does not get applied for the theme name.
|
48 |
|
1 |
=== Astra Customizer Reset ===
|
2 |
Contributors: brainstormforce
|
3 |
Tags: astra theme, customizer reset, reset astra customizer, reset astra theme
|
4 |
+
Tested up to: 6.1
|
5 |
+
Stable tag: 1.0.5
|
6 |
Requires at least: 4.4
|
7 |
|
8 |
This plugin helps to reset customizer settings for the Astra theme in a single click.
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
+
= 1.0.5 =
|
47 |
+
- Improvement: Compatibility for Astra Global Palette and Typography Preset options.
|
48 |
+
|
49 |
= 1.0.4 =
|
50 |
- Fix: White label settings does not get applied for the theme name.
|
51 |
|