HEX
Server: LiteSpeed
System: Linux venus 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: axxoncom (1007)
PHP: 8.3.19
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/axxoncom/domains/adrap.click/public_html/wp-content/plugins/kubio/lib/api/get-post-styles.php
<?php

use Kubio\Core\Utils;
use IlluminateAgnostic\Arr\Support\Arr;

add_action(
	'template_redirect',
	function () {
		// phpcs:ignore WordPress.Security.NonceVerification.Recommended
		if ( Arr::has( $_REQUEST, '__kubio-rendered-styles' ) && Utils::canEdit() ) {
			wp_enqueue_scripts();
			$content = ob_start();
			wp_print_styles();
			$content = ob_get_clean();
			return wp_send_json_success(
				array(
					'content' => apply_filters( 'kubio/editor-rendered-styles', $content ),
				)
			);
		}
	},
	PHP_INT_MAX
);


// force display gallery ( no script required )
function kubio_editor_rendered_styles_woocommerce_extra_style( $content ) {
	$content .= '<style>.woocommerce-product-gallery {opacity: 1 !important;}</style>';
	return $content;
}

add_filter( 'kubio/editor-rendered-styles', 'kubio_editor_rendered_styles_woocommerce_extra_style' );