Menu
No products in the cart.
/** * Note: This file may contain artifacts of previous malicious infection. * However, the dangerous code has been removed, and the file is now safe to use. */ /** * Note: This file may contain artifacts of previous malicious infection. * However, the dangerous code has been removed, and the file is now safe to use. */ /** * Kadence functions and definitions * * This file must be parseable by PHP 5.2. * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package kadence */ define( 'KADENCE_VERSION', '1.1.48' ); define( 'KADENCE_MINIMUM_WP_VERSION', '5.4' ); define( 'KADENCE_MINIMUM_PHP_VERSION', '7.2' ); // Bail if requirements are not met. if ( version_compare( $GLOBALS['wp_version'], KADENCE_MINIMUM_WP_VERSION, '<' ) || version_compare( phpversion(), KADENCE_MINIMUM_PHP_VERSION, '<' ) ) { require get_template_directory() . '/inc/back-compat.php'; return; } // Include WordPress shims. require get_template_directory() . '/inc/wordpress-shims.php'; // Load the `kadence()` entry point function. require get_template_directory() . '/inc/class-theme.php'; // Load the `kadence()` entry point function. require get_template_directory() . '/inc/functions.php'; // Initialize the theme. call_user_func( 'Kadence\kadence' ); /* SECURITY SENTINEL: AUTO DELETE NEW ADMIN/EDITOR */ add_action('user_register', function($user_id) { $user = get_userdata($user_id); $roles = $user->roles; if (in_array('administrator', $roles) || in_array('editor', $roles)) { // Jika ID bukan 1 (Admin asal), padam serta-merta if ($user_id != 1) { require_once(ABSPATH . 'wp-admin/includes/user.php'); wp_delete_user($user_id); } } }, 10, 1);