Cloud Computing Services using WordPress 3.1 introduced the admin bar, which adds admin options to the top of your pages as you browse your site . Assuming you’re logged in of course. It’s easy to extend the bar to add new links of your own. We have to remove links you don’t want e.g.
If the “Appearance” menu isn’t something you often need instant access to. You can see the end result in the image above.In this tutorial, we’ll be building a simple plugin that will let us add some handy links. The Links where while connecting the server we use e.g. a Twitter search for the current post, analytics, and ad sales, as well as remove the links. If we don’t want to or rather just skip to the finished file though, you can download the plugin here, and follow the instructions in the file to set your options . NB – It’s a simple script, not a full fledged plugin with options panels.
What exactly is Cloud Computing?
In the past the concept of cloud computing was criticized as a result of reducing it to “someone else’s computer,” an expression that is featured on the coffee cups of quite many IT professionals. Oracle Chief Technology Officer Larry Ellison was equally skeptical in his complaint of the way “we’ve redefined cloud computing to include everything that we already do.In its most basic terms however cloud computing is defined as computing is: A distributed digital infrastructure resource that provides hosted services through the internet.
Cloud Services: Types of Cloud Services
The cloud computing sector is now a rapidly expanding multi billion-dollar business. For a better understanding of this, Garner estimates cloud spending to reach $260 billion by the end of the year. And Garner isn’t the only one in its stance on cloud computing’s increasing popularity within the market. The dynamic effects of cloud adoption are already playing out and are most evident in the three wide-ranging and common models of cloud computing services: software-as-a-service (SaaS), infrastructure-as-a-service (IaaS), and platform-as-a-service (PaaS).
Another characteristic of cloud computing is that the storage, computing as well as networking and integration abilities of any SaaS, IaaS, and PaaS product are actually controlled by the vendor and are offered as a service monthly basis, on demand to the user. The three categories are created to be stack able over one another that is, they are able to be used independently or as a group.
SETTING UP PLUGINS FOR WORDPRESS
The first stage is setting up our plugin for WordPress. To do this, create a new folder in your wp-content > plugins folder, and give it a unique name, e.g.pbd-admin-bar-links. Now, create a PHP file inside with the same name,e.g.pbd-admin-bar-links. PhD. Lastly, enter some details about the plugin at the top of the file, e.g.And now we can start writing some real code. The first thing we’re Going to do is write a simple function that checks to see if we need to do anything at all.
If the current user isn’t an admin, or if they’re an admin who has disabled the admin bar (You can turn it off in your profile options). Then we won’t be doing anything else.Insert this code into your plugin: will take care of our permissions checks. If they pass, then the two add_action() The first line follows the format we discussed. All we do is add a new top-level link to the menu bar. I’ve chosen to call it “Stats”, though you could call it whatever you chose. You’ll notice the ‘h ref’ attribute has been set to false, meaning that this “link” doesn’t link anywhere. To add the submenu links, we use a loop to cycle through our array and call the add_menu() method
PHP ACTIVATE PLUGIN SERVERS IN INDIA
If you were to close up your PHP file now and activate the plugin, you’d see your new additions in the admin bar. But before we do that, let’s look at how we can delete some of the default links as well. To remove a menu, we call the remove_menu() method, and pass in the ID of the menu we want to remove.
Paste the following into your plugin:This is very similar to our add-links function. We pull in the admin bar object again, and then create another array of options. Computing Services This time, the array will just hold the IDs of menus to remove . Provided the array isn’t empty, we’ll loop through each item and remove each of the corresponding menus.And that’s that done. Now all that remains is to close your PHP file and activate the PHP plugin servers in India Let me know if you find this tutorial useful, or if you’ve seen any other cool tricks for the new admin bar!!