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 ?
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 ?
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.