HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: /var/www/GosuryaNew/wordpress/wp-content/themes/Divi/includes/builder/feature/et-server-frame.php
<?php
/**
 * Handle ET Server interaction.
 *
 * @package Builder
 */

/**
 * Save the domain token received from ET Server on successful login.
 */
function et_builder_ajax_save_domain_token() {
	et_core_security_check( 'manage_options', 'et_builder_ajax_save_domain_token', 'nonce' );

	if ( isset( $_POST['domain_token'] ) && is_string( $_POST['domain_token'] ) ) {
		$domain_token = sanitize_text_field( $_POST['domain_token'] );
		update_option( 'et_server_domain_token', $domain_token );
	}
}

add_action( 'wp_ajax_et_builder_ajax_save_domain_token', 'et_builder_ajax_save_domain_token' );