Skip to content

Instantly share code, notes, and snippets.

@pramodjodhani
Created November 28, 2025 10:44
Show Gist options
  • Select an option

  • Save pramodjodhani/28fe1ea97f73562a4ee2a344f099b917 to your computer and use it in GitHub Desktop.

Select an option

Save pramodjodhani/28fe1ea97f73562a4ee2a344f099b917 to your computer and use it in GitHub Desktop.
Iconic WDS - Disable holidays and timeslots.
/**
* 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