I want to check plugin version using following API

https://api.wordpress.org/stats/plugin/1.0/{slug}

For that how can I get Slug of All Active Plugins ?

3 Answers
3

Use option active_plugins to get all plugin init files. e.g.

$current = get_option( 'active_plugins', array() );
// print_r( $current );

Here, htmlpress is the plugin slug.

enter image description here

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *