$in_footer, ); // Check if WP version is 6.3 or higher if (version_compare($wp_version, '6.3', '>=')) { wp_enqueue_script($handle, $url, $deps, $version, $args); } else { // Fallback for older versions (pre-6.3), use boolean for in_footer $in_footer_legacy = isset($args['in_footer']) ? $args['in_footer'] : false; wp_enqueue_script($handle, $url, $deps, $version, $in_footer_legacy); } } function acanimations_add_attributes( $tag, $handle ) { if ('ac-script' === $handle) { $isOptionInHead = get_option('acanimations_load_location') === 'head'; $optionElements = get_option('acanimations_elements'); $optionStyle = get_option('acanimations_style'); $optionNavigation = get_option('acanimations_navigation'); $replace_tag = '