Timeline for Use ajax without a plugin?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 15, 2016 at 23:45 | vote | accept | mesqueeb | ||
Mar 15, 2016 at 14:19 | comment | added | mesqueeb | Thanks Tom! I'm really learning a lot. Do you have any wordpress guide recommendations? | |
Mar 15, 2016 at 12:41 | comment | added | Tom J Nowell♦ | Take whats in your functions.php and copy paste it into a new file in the plugins folder. Copy paste the comment at the top from another plugin and change the plugin name. That's literally all you need to do. A plugin is just a PHP file with a comment at the top that's written a certain way. But if you're time constrained, then you really do need to learn what hooks are, and some basics, otherwise you'll be wasting a lot of time over things that are super simple and take 10-20 words to explain | |
Mar 14, 2016 at 23:49 | comment | added | mesqueeb | I saw the wordpress manual on making plugins, and it's really long. I'm just too time constraint now to go through that. So we decided not to make plugins but do everything through functions.php. | |
Mar 14, 2016 at 17:49 | comment | added | Tom J Nowell♦ |
The hooks go in functions.php , although there really is no reason not to put it in a plugin
|
|
Mar 14, 2016 at 15:10 | comment | added | mesqueeb | Do i need to put the whole bottom part in functions.php? | |
Mar 14, 2016 at 15:06 | history | answered | Tom J Nowell♦ | CC BY-SA 3.0 |