acebase Posted March 9, 2021 Share Posted March 9, 2021 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. Quote Link to comment https://forums.phpfreaks.com/topic/312266-need-advice-reading-wordpress-plugin-code/ Share on other sites More sharing options...
requinix Posted March 9, 2021 Share Posted March 9, 2021 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. Quote Link to comment https://forums.phpfreaks.com/topic/312266-need-advice-reading-wordpress-plugin-code/#findComment-1584973 Share on other sites More sharing options...
maxxd Posted March 9, 2021 Share Posted March 9, 2021 (edited) 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 March 9, 2021 by maxxd grammar Quote Link to comment https://forums.phpfreaks.com/topic/312266-need-advice-reading-wordpress-plugin-code/#findComment-1584974 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.