Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Just curious, have you deleted the hello-dolly plugin?
Nope. Why?
BTW, the files don’t show you how, explanations are needed.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
How granular, like how to create a file locally using example IDEs and upload it through FTP software?
No, like how to make a plugin or php file. How to construct them.
Start with, “First you place the start here, formatting it in just this way. For your information, here are the parts of the start, what they are and what they do. To do a function you must format it this way, and here is how it is constructed and what it does.”
Not everybody works the same way. I don’t process information the way most people do, and I can’t be told what to do, I need to be shown.
There’s a fantastic guide here. That explains the process better than anyone in a forum thread here can. 🙂
http://codex.ww.wp.xz.cn/Writing_a_Plugin
Catacaustic,
The header and license stuff I get, but guidelines on how PHP is structured an what each part does is still obscure to me. Not everybody has the same background. What I need is a break down of each PHP function, and how it is implemented. For example, from the Hello Dolly plug in we find…
lines 46-51: // Here we split it into lines
$lyrics = explode( “\n”, $lyrics );
// And then randomly choose a line
return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) – 1 ) ] );
}
Now, where does one find a good introduction to PHP? One that doesn’t assume everybody knows what PHP experts do.
If you don’t know basic PHP then you’re going to be in for a whole world of hurt! BUT… it’s just a learning process, so don’t get too discouraged yet. 🙂
Some links that may help:
http://php.net/manual/en/introduction.php
http://www.codecademy.com/courses/web-beginner-en-StaFQ/0/1?curriculum_id=5124ef4c78d510dd89003eb8
http://www.tizag.com/phpT/
http://www.php-intro.com/
As far as what functions to use where… that’s determined 100% by what the plugin needs to do. There’s no one thing that can tell you what to do because your plugin will be different to everyone elses.