Created
November 28, 2025 10:44
-
-
Save pramodjodhani/28fe1ea97f73562a4ee2a344f099b917 to your computer and use it in GitHub Desktop.
Iconic WDS - Disable holidays and timeslots.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Iconic WDS - Disable holidays and timeslots. | |
| * Can be useful when because of a user error, holidays or Timeslots have incorrect values | |
| * breaking the site. | |
| * | |
| * This provides a temporary access to the settings to fix the issue. | |
| * To be removed after the issue is fixed. | |
| */ | |
| add_action( 'wp_loaded', 'iconic_wds_disable_holidays_timeslots', 11 ); | |
| function iconic_wds_disable_holidays_timeslots() { | |
| if ( ! class_exists( 'Iconic_WDS' ) ) { | |
| return; | |
| } | |
| global $iconic_wds; | |
| $iconic_wds->settings['holidays_holidays_holidays'] = []; | |
| $iconic_wds->settings['timesettings_timesettings_timeslots'] = []; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment