How can I remove the Wordpress-Version (?ver=5.x) from my plugin
I am working on my first plugin that adds a external script to the footer. Wordpress automatically adds the version number at the end, which I'm trying to remove. What I have so far:
add_action('wp_enqueue_scripts', array($this,'print_code'));
public function print_code(){
$location = get_option('location_select');
$url = 'https://' . esc_html($location) . '.domain.com/js/script.js';
wp_enqueue_script('myID', $url, array('jquery'), false, true);
}
This puts out the script correctly, but I still have the version (?ver=5.8) at the end. The false should avoid that, afaik. What am I missing?
Topic footer wp-enqueue-script plugin-development plugins Wordpress javascript
Category Web