Jump to content

Need advice reading Wordpress plugin code


acebase

Recommended Posts

I wanted to develop a Wordpress plugin.

There's a few existing plugins for the subject I wanted to code.

I thought I would get some inspiration by looking at the code.

It's a gigantic mess of spaghetti!

The code I looked at, looks like it's been made using an IDE. There seems to be so many folders and files - it's crazy. Others I looked at seem to be similar.

It seems like an enterprise application.

I'm more than capable of writing a spec and coding myself.

The only thing I'm missing would be Wordpress practices - setting up tables and using hooks and other things.

Any advice?

Or do I just get dirty and sink my head into the code and untangle?

QUESTIONS:

- Do you use an IDE to code PHP?

- What are the most popular IDE's?

Thanks.

Link to comment
Share on other sites

1 hour ago, acebase said:

Any advice?

Read through documentation and articles about creating plugins first. It'll make understanding existing plugins easier because you'll actually know what you're looking at.

When you're ready, start with a Hello World-type plugin you make yourself. Something very basic. You can use other plugins as references for what to do, but don't blindly copy stuff from them. Then add more features as you go.

 

1 hour ago, acebase said:

- Do you use an IDE to code PHP?

Hahaha of course. I quit text editors years ago.

 

1 hour ago, acebase said:

- What are the most popular IDE's?

Notepad++ is a popular non-IDE. It's a great text editor, got lots of plugins, can do a bunch of things, but ultimately it's a text editor.

VS Code is relatively new and has become one of the top IDEs. It's generic which means you have to install extensions for many things, but there are tons of those.
PhpStorm is older but dedicated to PHP and all-around a good choice.

Link to comment
Share on other sites

3 hours ago, acebase said:

It's a gigantic mess of spaghetti!

It's very easy to do that with WordPress if you're not careful.

3 hours ago, acebase said:

The only thing I'm missing would be Wordpress practices - setting up tables and using hooks and other things.

Hit the codex. The documentation for WordPress is actually quite good.

Edited by maxxd
grammar
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.