|
There are a few ways you can do this. My preferred way of doing this is using Object Oriented Programming (OOP) to structure the plugin. For example, I might do this:
There are many many advantages to using object oriented programming in plugins; however, if you don want to use OOP, I would suggest either setting a global variable or defining a constant with the value you want to use for that string. |
| More Solution |
|---|
Reffered: https://wordpress.org/