Uname: Linux p3plzcpnl499967.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Software: Apache
PHP version: 8.2.30 [ PHP INFO ] PHP os: Linux
Server Ip: 208.109.40.231
Your Ip: 216.73.216.26
User: nayff91c5tsx (10005085) | Group: nayff91c5tsx (10005085)
Safe Mode: OFF
Disable Function:
NONE

name : functions.php
<?php
/**
 * Jet Woo compatibility
 */
/**
 * Fix for nonce user logged out
 */
add_action( 'init', function() {

	if ( ! is_user_logged_in() ) {
		add_filter( 'nonce_user_logged_out', function ( $uid , $action = -1 ) {

			if ( 'wp_rest' === $action ) {
				return get_current_user_id();
			}

			return $uid;

		}, 99, 2 );
	}
} ) ;

/**
 * Include woo hooks functions for ajax
 */
add_action( 'jet-menu/render/elementor-render/get-content/before', function ( $template_id, $settings ) {

	if ( wp_doing_ajax() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) {
		WC()->frontend_includes();
	}
}, 10, 4 );
© 2026 GrazzMean