HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/backachetherapy.co.uk/public_html/wp-content/themes/blocksy/inc/classes/database.php
<?php

namespace Blocksy;

class Database {
	private $mods = '__EMPTY__';

	public function get_theme_mod($name, $default_value = false) {
		if (
			is_admin()
			||
			is_customize_preview()
			||
			wp_doing_ajax()
			||
			$this->mods === '__EMPTY__'
		) {
			$this->mods = get_theme_mods();
		}

		$value = $default_value;

		if (isset($this->mods[$name])) {
			$value = $this->mods[$name];
		}

		/** This filter is documented in wp-includes/theme.php */
		return apply_filters("theme_mod_{$name}", $value);
	}

	public function wipe_cache() {
		$this->mods = '__EMPTY__';
	}
}