HEX
Server: nginx/1.26.3
System: Linux debian 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64
User: root (0)
PHP: 5.6.40
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/gxdaosen.net/wp-content/plugins/futurio-extra/options/custom-codes.php
<?php

if ( !class_exists( 'Kirki' ) ) {
	return;
}

function futurio_extra_do_not_filter_anything( $value ) {
	return $value;
}

Kirki::add_section( 'custom_code_section', array(
	'title'		 => esc_attr__( 'Custom Codes', 'futurio-extra' ),
	'priority'	 => 10,
) );

Kirki::add_field( 'futurio_extra', array(
	'type'			 => 'textarea',
	'settings'		 => 'header-code',
	'label'			 => __( 'Code to be added to the HEAD', 'futurio-extra' ),
	'description'	 => __( 'Suitable for Google Analytics code', 'futurio-extra' ),
	'section'		 => 'custom_code_section',
	'transport'		 => 'postMessage',
	'sanitize_callback' => 'futurio_extra_do_not_filter_anything',
	'default'		 => '',
	'priority'		 => 10,
) );

add_action( 'wp_head', 'futurio_extra_add_googleanalytics', 10 );

function futurio_extra_add_googleanalytics() {
 $header_code = get_theme_mod( 'header-code', '' );
 if ( $header_code ) {
  echo get_theme_mod( 'header-code', '' );
 }
} 


Kirki::add_field( 'futurio_extra', array(
	'type'			 => 'textarea',
	'settings'		 => 'footer-code',
	'label'			 => __( 'Code to be added to the footer', 'futurio-extra' ),
	'section'		 => 'custom_code_section',
	'transport'		 => 'postMessage',
	'sanitize_callback' => 'futurio_extra_do_not_filter_anything',
	'default'		 => '',
	'priority'		 => 10,
) );

add_action( 'wp_footer', 'futurio_extra_add_footer_code' );

function futurio_extra_add_footer_code() {
 $header_code = get_theme_mod( 'footer-code', '' );
 if ( $header_code ) {
  echo get_theme_mod( 'footer-code', '' );
 }
}