How to register my code as a plugin
Well as it stands your code will not be executed regardless of whether you add it to your functions.php file or you register it as a stand-alone plugin as it makes no call to any of its functions using a WordPress hook. In order for your code to be recognised as a plugin, there are … Read more