in_footer: gives syntax error
As of WordPress 6.3, the in_footer parameter is now bundled into the args array parameter (source). The correct syntax for the wp_enqueue_script() function is now as follows (leaving out the named function parameter as it not officially supported by WP core): wp_enqueue_script( string $handle, string $src=””, string[] $deps = array(), string|bool|null $ver = false, array|bool … Read more