Viewers: in countries Watching now:
In WordPress: Creating Custom Widgets and Plugins with PHP, Drew Falkman teaches PHP developers how to create custom functionality for WordPress 2.0 through 3.0 using widgets and plugins. This course starts by installing and setting up WordPress 3.0 on both Mac and Windows, then provides an in-depth look at tasks related to these WordPress add-ons: installing and administering, building and customizing, creating editable options and database tables, working with posts and pages, and utilizing jQuery and AJAX. There are also tutorials dedicated to promoting a widget or plugin, adding security, and localizing the interface. Exercise files are included with the course.
So let's go ahead and get set out for PDT. So PDT stands for PHP Development Tools. It's part of this Eclipse project. It's a plugin. It's very well used. The whole project is led by Zend, who made Zend Studio. The up side is, because it is managed by Zend, they tend to keep it fairly well up to date. The downside, of course, is there's not really any incentive for them to add the kind of things that they have in their studio, but it's a great lightweight tool. So we're going to download it from eclipse.org/pdt/downloads/ and when we're done downloading, we have this tarball, and in order to install this tarball, double-clicking will extract it to our Desktop. In this case, I downloaded it to my Desktop; you might have downloaded it somewhere else.
So now we have this folder Eclipse. The installation process, in this case, is really just a matter of going to your Applications directory and dragging Eclipse into your Applications directory. You can see, once it's placed in here, there's a file inside called eclipse with the little sphere icon. That's our application. To make it easy, I am going to grab this application, and I am going to put it onto my Dock down here, so that I can launch it whenever I want to.
So when you're ready to launch PDT, simply click the Eclipse icon and go ahead and open it up. It's going to give us an option first to choose a workspace. All a workspace really is is a grouping of projects, so we can go ahead and put it in this particular directory. If you want to change directories, that's fine; just point to an empty directory somewhere. When it's done setting up, we'll get our welcome screen: Welcome to PDT Eclipse for PHP developers. There are some tutorials, samples, and some other helpful things for you that you may want to check out on your own.
For now, I'm just going to ahead and continue straight to the workbench, which is the actual development part of the IDE. So this is our workspace. Over here is where all our files and projects are going to be. This is called the Editor. This is where our actual file will be edited. I've got some other helpful what they call views down here, which can give me information while I am coding, like problems in my code. And then I have an outline view that will essentially give me a hierarchical view of my coding files. Anytime you're working in anything in Eclipse--and PDT is no different--you need to have a project which is going to organize your files.
So to create up new project you can either go to File > New > PHP Project, or you can right-click in the Explore here and go to New > PHP Project. This will open the New PHP Project Wizard. You're going to enter a name. I am just going to call it WordPress, and I like to just point it to the WordPress installation itself. That way I have access to all the different PHP files inside of it. So create a project in an existing location and go ahead and point to where all of your WordPress files are.
In this case, I don't have any, so I am not going to do anything here. So you can see I've got it installed now, and I have access to all my files. It has detected some issues-- nothing to worry about. I can open any of these files, and you can see I have all my code-hinting, comments are a different color, HTML is a different color, so it makes it real easy to see what's going on in my code. And again, I have this hierarchical view I can go through. Now we've got PDT all set up and configured, and we're ready to start writing WordPress plugins.
Find answers to the most frequently asked questions about WordPress: Creating Custom Widgets and Plugins with PHP .
Here are the FAQs that matched your search "" :
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
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.