HEX
Server: Apache/2.4.66 (Debian)
System: Linux ouvweb01 6.1.0-43-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.162-1 (2026-02-08) x86_64
User: respire.localocb5 (24651)
PHP: 8.3.30
Disabled: popen,proc_open,disk_free_space,diskfreespace,leak,exec,system,shell_exec,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_getpriority,pcntl_setpriority,pcntl_signal_dispatch,pcntl_signal,pcntl_sigprocmask,pcntl_sigtimedwait
Upload Files
File: /var/www/vhosts/respire.localoco.net/httpdocs/wp-content/themes/blocksy/inc/integrations/zion.php
<?php

add_action('init', function () {
	add_filter(
		'rest_request_after_callbacks',
		function ($response, $handler, \WP_REST_Request $request) {
			$route = $request->get_route();

			if ($route === '/zionbuilder/v1/options') {
				$data = $response->get_data();

				$data['local_colors'][] = 'var(--theme-palette-color-1)';
				$data['local_colors'][] = 'var(--theme-palette-color-2)';
				$data['local_colors'][] = 'var(--theme-palette-color-3)';
				$data['local_colors'][] = 'var(--theme-palette-color-4)';
				$data['local_colors'][] = 'var(--theme-palette-color-5)';
				$data['local_colors'][] = 'var(--theme-palette-color-6)';
				$data['local_colors'][] = 'var(--theme-palette-color-7)';
				$data['local_colors'][] = 'var(--theme-palette-color-8)';

				$response->set_data($data);
			}

			return $response;
		},
		1000, 3
	);
});