Skip to content

Commit

Permalink
Merge pull request #24 from brainstormforce/new-options
Browse files Browse the repository at this point in the history
Added typography and color palette options compatibility
  • Loading branch information
premanshup authored Sep 7, 2021
2 parents 82ab764 + 20c053c commit f029d07
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
**Contributors:** [brainstormforce](https://profiles.wordpress.org/brainstormforce)
**Tags:** astra theme, customizer reset, reset astra customizer, reset astra theme
**Tested up to:** 5.8
**Stable tag:** 1.0.4
**Stable tag:** 1.0.5
**Requires at least:** 4.4

This plugin helps to reset customizer settings for the Astra theme in a single click.
Expand Down Expand Up @@ -43,6 +43,9 @@ No! Once you reset the customizer settings you can not revert it back. You will

## Changelog ##

### 1.0.5 ###
- Improvement: Compatibility for Astra Global Palette and Typography Preset options.

### 1.0.4 ###
- Fix: White label settings does not get applied for the theme name.

Expand Down
8 changes: 6 additions & 2 deletions class-astra-theme-customizer-reset.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Astra Customizer Reset
* Plugin URI: https://wpastra.com/
* Description: Reset the Astra theme customizer options from customizer interface.
* Version: 1.0.4
* Version: 1.0.5
* Author: Brainstorm Force
* Author URI: http://www.brainstormforce.com
* Text Domain: astra-customizer-reset
Expand All @@ -16,7 +16,7 @@
}

define( 'ASTRA_THEME_CUSTOMIZER_RESET_URI', plugins_url( '/', __FILE__ ) );
define( 'ASTRA_CUSTOMIZER_VERSION', '1.0.4' );
define( 'ASTRA_CUSTOMIZER_VERSION', '1.0.5' );
/**
* Astra Customizer Reset
*
Expand Down Expand Up @@ -112,6 +112,10 @@ public function ajax_customizer_reset() {
} else {
delete_option( ASTRA_THEME_SETTINGS );
}

// Delete Global Color Palette and Typography Preset options.
delete_option( 'astra-typography-presets' );
delete_option( 'astra-color-palettes' );
}

wp_send_json_error( 'pass' );
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: brainstormforce
Tags: astra theme, customizer reset, reset astra customizer, reset astra theme
Tested up to: 5.8
Stable tag: 1.0.4
Stable tag: 1.0.5
Requires at least: 4.4

This plugin helps to reset customizer settings for the Astra theme in a single click.
Expand Down Expand Up @@ -43,6 +43,9 @@ No! Once you reset the customizer settings you can not revert it back. You will

== Changelog ==

= 1.0.5 =
- Improvement: Compatibility for Astra Global Palette and Typography Preset options.

= 1.0.4 =
- Fix: White label settings does not get applied for the theme name.

Expand Down

0 comments on commit f029d07

Please sign in to comment.