Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Administering plugins from the WordPress admin

From: WordPress: Creating Custom Widgets and Plugins with PHP

Video: Administering plugins from the WordPress admin

Let's go ahead and log in to the WordPress admin console and have a look at how site administrators work with plugins. We'll look at how you can install and remove plugins, we'll look at the upgrading process, what it means to activate and deactivate a plugin, and finally how to delete a plugin that's already been installed. So to log in to the admin console, you go into whatever the URL of your WordPress installation is-- In our case with map, it's localhost:8888 /WordPress/wp-admin will always be your administrative console--and log in with the username and password that you chose during the installation process.

Administering plugins from the WordPress admin

Let's go ahead and log in to the WordPress admin console and have a look at how site administrators work with plugins. We'll look at how you can install and remove plugins, we'll look at the upgrading process, what it means to activate and deactivate a plugin, and finally how to delete a plugin that's already been installed. So to log in to the admin console, you go into whatever the URL of your WordPress installation is-- In our case with map, it's localhost:8888 /WordPress/wp-admin will always be your administrative console--and log in with the username and password that you chose during the installation process.

So over here on our left, you can see I have this Plugins section. This is where administrators go to administer all the existing plugins, and you can see it's a list of all the plugins that are currently installed in their WordPress environment. In this case, we have three: the two defaults--one is called Akismet which is a web service that checks comments to determine if they are spam or not, we have Hello Dolly, which is just a simple basic plugin that you can take a look at to see how plugins work--and then I have this Tweet This, which I had added later so that I can use Twitter to tweet certain posts.

Notice for each one, you have a plugin name, you have a description of what the plugin does, you a version number, you have whoever the author was of the plugin and very often a link to their site, and finally a link to the plugin site which would go directly to the site that host the plugin. If I want to add new plugins, I can do those directly from the administrator. I simply click the Add New Link. I can filter by Featured, Popular, Newest, Recently Updated. I can do different tags that they have-- these are the popular tags that have been searched at the WordPress directory-- or I can search directly from here.

So if I were to search for something like 'social networking,' you can see I get a number of widgets. They all have a rating and an explanation of what they all are. This is coming directly from the web site, the WordPress.com Plugin Directory. If I want to install any of these-- say this one, it looks pretty good-- I can click the Install Now button. When I acknowledge it, it will actually download a ZIP file into our WordPress installation and extract it into the Plugin Directory.

So now that it's all been installed, I can go back to my Plugins page, and I can see the Social Links plugin has been added to my WordPress installation. If I ever want any of these plugins to be used, I need to click the Activate button. By default when they're installed, they're not actually going to run. They're just going to put the files onto your WordPress installation. So to make them actually run, you need to activate them. Once they're activated, then they'll work. If you ever want to turn them off, you can go ahead and deactivate them.

Deactivating won't uninstall them. In fact, it'll save any settings or database information, typically, but it essentially turns it off. So if you ever have an issue come up, a conflict with different plugins or something, you can just try to deactivate. In fact, usually if there's an error in your WordPress installation, one of the first things you can do is deactivate your plugins and see where you go. The Bulk Actions menu allows you to do a lot of these functions to multiple plugins at the same time.

So by selecting this top check box will check all of them. You can then activate all, deactivate all, upgrade all, or delete all. If you were to look at a live web site, this is my mmmstuff.com blog where I post some nifty little things that I find on the Internet. As you can see, I haven't updated to WordPress 3.0 yet-- in fact, it's prompting me up here that I should, and I will, but I haven't done it yet. This is WordPress 2.92. You can see here in my Plugins page that I have a number of messages here that tell me there is a new version available.

So anything that's hosted at the WordPress.com Plugin Directory will tell me when there's a new version available inside my administrator, so that I can download directly from there. So, for example, this list category post, if I do want to upgrade it, I click Upgrade Automatically. It will then download all the files, just like it did when I installed the plugin, but it will also reactivate the plugin for me. You can see it reactivated successfully. Now when I go back, I now only have seven upgrades to go.

One of the things that you can see in the differences here is that in the Bulk Actions menu I don't have upgrade available. That was something that was added new to Bulk Update at the same time in WordPress 3.0. So that's the basics of interacting with plugins from the WordPress admin console. From there, WordPress administrators can add new plugins, they can update their existing plugins, they can turn them on and off, and when they're done finally, they can delete them. One more thing I want to show you that will be relevant to plugin development as we go along is this Edit button.

If you click on the Edit button, you can actually see the source file of your plugins. We are not going to get into this yet, but this is what we're going to be writing.

Show transcript

This video is part of

Image for WordPress: Creating Custom Widgets and Plugins with PHP
 
Expand all | Collapse all
  1. 1m 49s
    1. Welcome
      1m 16s
    2. Using the exercise files
      33s
  2. 23m 29s
    1. WordPress overview
      2m 32s
    2. Installing WPI for Windows
      3m 42s
    3. Installing MAMP for the Mac
      3m 25s
    4. Installing and configuring WordPress
      5m 51s
    5. Comparing WordPress 3.0 with previous versions
      2m 57s
    6. Setting up a PHP/WordPress development environment
      5m 2s
  3. 14m 47s
    1. Exploring WordPress plugins
      3m 42s
    2. Administering plugins from the WordPress admin
      5m 23s
    3. Exploring where plugins reside
      2m 51s
    4. Introduction to hooks
      2m 51s
  4. 39m 28s
    1. Creating the plugin PHP file(s)
      3m 12s
    2. More on hooks: Actions and filters
      3m 15s
    3. Installation and activation
      4m 6s
    4. Writing activation code
      3m 45s
    5. Writing an action
      5m 12s
    6. Writing a filter
      4m 15s
    7. About pluggable functions
      2m 1s
    8. Writing a pluggable function
      5m 30s
    9. Using template tags
      2m 46s
    10. Introducing shortcode
      5m 26s
  5. 26m 2s
    1. Widgets and the WordPress Widgets SubPanel
      2m 54s
    2. Comparing widgets and plugins
      1m 8s
    3. Using and customizing built-in widgets
      3m 18s
    4. Creating a new widget
      7m 21s
    5. Writing the constructor and registering widgets
      5m 20s
    6. Enabling configuration of widgets
      6m 1s
  6. 44m 59s
    1. Creating an admin interface
      5m 25s
    2. Saving data to the database
      5m 39s
    3. Securing form submission with nonces
      2m 25s
    4. Options editing post-WordPress 2.7
      4m 8s
    5. Integrating with the WordPress admin menus
      3m 34s
    6. WordPress admin dashboard API
      4m 5s
    7. Using existing options and option editing pages in WordPress
      5m 19s
    8. Using jQuery and AJAX for administration
      14m 24s
  7. 27m 13s
    1. Accessing the WordPress database
      5m 45s
    2. Using the built-in schema
      2m 21s
    3. Accessing data using $wpdb
      5m 15s
    4. Creating new tables
      7m 18s
    5. Inserting data
      6m 34s
  8. 26m 27s
    1. Introducing the Loop
      6m 22s
    2. Using WP_Query()
      3m 11s
    3. Custom filtering and sticky posts
      4m 58s
    4. Using jQuery and AJAX for posts and pages
      11m 56s
  9. 12m 9s
    1. Registering and promoting plugins
      2m 28s
    2. Creating an uninstall function
      5m 53s
    3. Backward compatibility issues
      3m 48s
  10. 15m 3s
    1. Understanding security issues
      11m 20s
    2. Internationalizing your plugin
      3m 43s
  11. 18s
    1. Goodbye
      18s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed WordPress: Creating Custom Widgets and Plugins with PHP.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.