| Server IP : 121.121.20.254 / Your IP : 216.73.216.59 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/kadence-pro/dist/scripts-addon/ |
Upload File : |
<?php
/**
* Class for the Customizer
*
* @package Kadence
*/
namespace Kadence_Pro;
use function Kadence\kadence;
/**
* Output header scripts.
*/
function header_scripts() {
$script = kadence()->option( 'header_scripts' );
if ( ! empty( $script ) ) {
echo $script;
}
}
add_action( 'wp_head', 'Kadence_Pro\header_scripts', 50 );
/**
* Output after body scripts.
*/
function after_body_scripts() {
$script = kadence()->option( 'after_body_scripts' );
if ( ! empty( $script ) ) {
echo $script;
}
}
add_action( 'wp_body_open', 'Kadence_Pro\after_body_scripts', 50 );
/**
* Output footer scripts.
*/
function footer_scripts() {
$script = kadence()->option( 'footer_scripts' );
if ( ! empty( $script ) ) {
echo $script;
}
}
add_action( 'wp_footer', 'Kadence_Pro\footer_scripts', 50 );