You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ The plugin will do nothing, so you're able to start developing your functionalit
20
20
### The functions.php file
21
21
The `functions.php` in the root of the plugin can be used almost like a `functions.php` of a theme. It was built to make easy to anyone familiar with WordPress theme functions to get started. Just put your hooks and callbacks there, and it should work!
22
22
23
-
### OOP
23
+
### OOP: Object Oriented Programming
24
24
The plugin structure comes with a basic folder structure based on modern PHP development. The folder `/src` is where classes and interfaces should be, subdivided by "domains". For example, the structure comes with `/src/meta-boxes`, in that folder classes related to meta boxes will be placed, like meta box creation helpers, custom meta boxes registrations, etc.
25
25
26
26
But, we could have a different approach, understanding domains as a different thing, we could group all classes related to a specific functionality together, even if it means we'll end with classes that deal with meta boxes, custom post types, API's, etc. in the same folder.
0 commit comments