Check for dependent plugin and if false dont activate plugin
I am creating a plugin for WordPress and this plugin depends on another plugin with a specific version. If I enable my plugin without dependent plugin there are fatal error. Is there a way to check this ?
I tried looking at source code but WP do not provide any hook for this.
Thanks in advance.
--UPDATE--
I am not asking about how to check plugin installed or about plugin data, but I want to know "how to check if dependent exists and if no show a warning and don't activate plugin".
Topic wp-dependencies plugin-development Wordpress
Category Web