How use get_plugin_updates() function?

Welcome. The function returns an array of all possible updates. Means that you need to specify the plugin that you need to get its information. Sample output of get_plugin_updates call on admin_init: array(1) { [“fast-velocity-minify/fvm.php”]=> object(stdClass)#7844 (14) { [“Name”]=> string(20) “Fast Velocity Minify” [“PluginURI”]=> string(23) “http://fastvelocity.com” [“Version”]=> string(5) “2.7.7” [“Description”]=> string(192) “Improve your speed score … Read more

Getting all woocommerce products from REST API call in plugin

I was close to the answer here, but held back by being unfamiliar with how global WordPress can be, and how that can be used to extend plugins. All I needed to do was wrap the plugin logic in a check for the presence of Woocommerce: if ( in_array( ‘woocommerce/woocommerce.php’, apply_filters( ‘active_plugins’, get_option( ‘active_plugins’ ) … Read more