WordPress plugin blog creation

pluginprefix_setup_post_type() is a method inside the SoaneNews class, not a function, but inside your activate() method you’ve called a function with that name: function activate(){ pluginprefix_setup_post_type(); flush_rewrite_rules(); } To call the pluginprefix_setup_post_type() method from within the class, you need to do it like this: $this->pluginprefix_setup_post_type();

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