888888.888888.88""Yb..dP"Yb..8888b..Yb..dP.88b.88....db....8b....d8.88..dP""b8..dP"Y8
88__...88__...88__dP.dP...Yb..8I..Yb.YbdP..88Yb88...dPYb...88b..d88.88.dP...`".`Ybo."
88""...88""...88"Yb..Yb...dP..8I..dY..8P...88.Y88..dP__Yb..88YbdP88.88.Yb......o.`Y8b
88.....888888.88..Yb..YbodP..8888Y"..dP....88..Y8.dP""""Yb.88.YY.88.88..YboodP.8bodP'


88b.88.888888.888888.Yb........dP.dP"Yb..88""Yb.88..dP
88Yb88.88__.....88....Yb..db..dP.dP...Yb.88__dP.88odP.
88.Y88.88"".....88.....YbdPYbdP..Yb...dP.88"Yb..88"Yb.
88..Y8.888888...88......YP..YP....YbodP..88..Yb.88..Yb

December 23, 2008

Have you heard of NetBeans? It has been around for ages as a Java tool but now it has PHP and a whole load of goodies that make it excellent for WordPress development. Let me lay some out for you.

For this example I have created a new project in NetBeans for WordPress (There is a tutorial here if you don’t know how to do that).

The first point of note is that for some time now Jacob Santos has been diligently documenting the WordPress code. This is quite useful when you are surfing around trying to find out what you want, but with NetBeans all of this documentation is read into the code complete function. So now you have WordPress code completion. For example, if you type add_ac and then press ctrl + space you get:

Add action autocomplete

All documented WordPress functions can be found through the auto complete letting you know the parameters, the options, and even the file where it can be found. But that isn’t all. Often you want to look through the function itself to find out more. That’s easy. Right click on the function to get the menu up:

Find Declaration

Selecting find declaration will open the file and scroll to the original function declaration. I can’t tell you how many hours I have spent function hunting before now.

You might also note on that image another option marked Find Usages. Want a quick route to find every hook in WordPress? Well, actions are defined by the do_action function, so type in ‘do_action();’, right click and choose find usages. You get a handy list:

List of WordPress actions

Something else I love are the code shortcuts. For example, type in cls and then tab and you have a class declaration waiting for you to type in the name. It has loads more, functions, loops, conditions, intanceof, and you can add your own shortcuts to that list.

If you are developing for WordPress I recommend giving NetBeans a try. You might also want to take a look at this demonstration screencast that covers most of these points in an example showing how to create a flickr slideshow.

What Wordpress Workflow Needs
Wordpress plugin workflow?
3 comments
page 1226
What Wordpress Workflow Needs
Wordpress plugin workflow?
3 comments
page 1226
Post Image The Easy Peasy Way
Wp get attached large images?
26 comments
page 1065
Html 5 Gallery
Html 5 picture gallery?
6 comments
page 1305
Quick N Dirty Admin Login Screen
Simple css login page?
no comment
page 128
Fun With Sidebar Tabs Styling
Wordpress theme colored tabs?
2 comments
page 336
Creating Custom Urls
Custom url for wordpress page?
6 comments
page 80
Why I Ditched Disqus
Wordpress disqus page comments?
5 comments
page 1175
Post Image The Easy Peasy Way
Wp codex display image in loop?
26 comments
page 1065
Updating Code Snippets Here
Code updating?
no comment
page 1338
How To Add Sidebars To A Theme
Add sidebars in footer?
10 comments
page 1053
Post Image The Easy Peasy Way
Wp codex images in loop?
26 comments
page 1065
Using Your Own Url Shortener
Wordpress rewrite specific category?
4 comments
page 1190
Post Image The Easy Peasy Way
Wordpress get attached image url?
26 comments
page 1065
Quick N Dirty Admin Login Screen
Login screen css?
no comment
page 128
Doing More With Widgets Changing Layouts
Wordpress how to us registersidebarwidget more then once?
6 comments
page 28
Wordpress Chat
Wordpress chat?
3 comments
page 1308
Fun With Theme Widgets
Wp fun tema?
24 comments
page 867
Html 5 Gallery
Photo gallery html 5?
6 comments
page 1305
Html 5 Gallery
Html5 image gallery?
6 comments
page 1305
Post Image The Easy Peasy Way
Get large image from post wordpress?
26 comments
page 1065
Why I Ditched Disqus
Disqus themes?
5 comments
page 1175
My Experience Of Flexx
Flexx theme and wordpress?
4 comments
page 1026
Post Image The Easy Peasy Way
Image attachment in wp?
26 comments
page 1065
Wpunlimited The Ultimate Wordpress Theme
Wordpress blogs?
3 comments
page 1141
Html 5 Gallery
Html wordpress 5 themes?
6 comments
page 1305
Html 5 Gallery
Html wordpress 5 themes?
6 comments
page 1305
Premium Ithemes Review Photo Gallery
Ithemes review?
4 comments
page 226
Post Image The Easy Peasy Way
Postimage wp?
26 comments
page 1065
Post Image The Easy Peasy Way
Wordpress get medium image?
26 comments
page 1065
Html 5 Gallery
Gallery html5?
6 comments
page 1305
Updating Code Snippets Here
Fun plugins wordpress?
no comment
page 1338
Quick N Dirty Offline Status
How to make my offline and update database if i exit the page?
no comment
page 134
  1 query every 1691 seconds, updated 1 seconds ago.
Wednesday, 3pm
 __
(__)
   `

 NetBeans ? WordPress ???????? – ????????

[...] Why you should try Netbeans – WP FUN [...]

Wednesday, 6pm
 __
(__)
   `

 edkohler

Wow, this looks impressive. Thanks for breaking things down. I have a few WP issues I've been meaning to address but wasn't sure how to go about it so I'll give this a try.

Wednesday, 9am
 __
(__)
   `

 bingu

Thanks for your tips.
Netbeans is really a great PHP Editor. :)

Wednesday, 9am
 __
(__)
   `

 ??Netbeans??WordPress | ??blog

[...] ??????NetBeans???WordPress??????Why you should try Netbeans? [...]

Tuesday, 7pm
 __
(__)
   `

 Micha

Thanks for the tip! The IDE looks really nice.
At the moment i'm using Aptana Studio.

Tuesday, 5pm
 __
(__)
   `

 Scott

I agree as I have been using netbeans as a php editor and except for a few css editor issues, Netbeans is perfect! I have finally pulled the plug on using dreamweaver and have gone to Netbeans only…I am not looking back!