🚀 Hostinger Optimized
🖥️ Server: Apache
💻 System: Linux webm015.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
👤 User: stakrfrcol (69043)
🐘 PHP: 8.3.31
🚫 Disabled: _dyuweyrj4,_dyuweyrj4r,dl

💻 Terminal

📁 /home/stakrfrcol/agency
$

📄 preset.js

📁 Path: /home/s/t/a/stakrfrcol/agency/wp-content/themes/xhyre/includes/kirki/modules/preset/preset.js
📊 Size: 877 B
🔒 Perm: 0644
📝 MIME: text/plain
/* global kirkiSetSettingValue */
jQuery( document ).ready( function() {
	// Loop Controls.
	wp.customize.control.each( function( control ) {
		// Check if we have a preset defined.
		if ( control.params && control.params.preset && ! _.isEmpty( control.params.preset ) ) {
			wp.customize( control.id, function( value ) {
				// Listen to value changes.
				value.bind( function( to ) {
					// Loop preset definitions.
					_.each( control.params.preset, function( preset, valueToListen ) {
						// Check if the value set want is the same as the one we're looking for.
						if ( valueToListen === to ) {
							// Loop settings defined inside the preset.
							_.each( preset.settings, function( controlValue, controlID ) {
								// Set the value.
								kirkiSetSettingValue.set( controlID, controlValue );
							} );
						}
					} );
				} );
			} );
		}
	} );
} );
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨