Timeline for How can I re-use PHP code across different pages?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 2, 2020 at 3:42 | comment | added | Joel M | Put files wherever you would like and include or require them from functions.php which is the main file in your theme that WordPress automatically includes on every script execution. All of WordPress and all other proper php code uses includes extensively to avoid declaring classes or functions twice. | |
Aug 7, 2018 at 20:18 | comment | added | Tom J Nowell♦ |
are you aware of functions.php , and PHP includes?
|
|
Aug 7, 2018 at 19:55 | answer | added | WPZA | timeline score: -1 | |
Aug 7, 2018 at 19:49 | history | asked | ellen | CC BY-SA 4.0 |