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
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,44 +15,44 @@ NOTE: Requires PHP 5.4 and up. Uses `cURL` for API integration class.
15
15
Also, change the `/asset` file paths in plugin file `wp-plugin-framework.php` to your chosen folder path name.
16
16
It's a precaution to avoid conflict.
17
17
18
-
2. In `autoload.php` the `PLUGIN_BUILD` class includes all the files in instance and declares the classes inside them. You can remove existing files or add more files. It's recomended to put all the plugin features instances inside `PLUGIN_BUILD`. This will help in organising the code.
18
+
2. In `plugin/PluginLoader.php` the `PluginLoader` class includes all the files in instance and declares the classes inside them. You can remove existing files or add more files. It's recomended to put all the plugin features instances inside `PluginLoader`. This will help in organising the code.
19
19
20
-
3. In `autoload.php` the installation and uninstallation classes contain possible situations, including DB installation and uninstallation features.
20
+
3. In `plugin/PluginLoader.php` the installation and uninstallation classes contain possible situations, including DB installation and uninstallation features.
21
21
22
22
## Features
23
23
24
24
Go through the files in `/lib/class-` and `/src/class-`. First one contains classes for extra features, while the latter is using essential features.
25
25
26
-
### `/lib` Files
26
+
### `/plugin/lib` Files
27
27
28
-
`/lib/class-cron.php` :: `PLUGIN_CRON` to schedule operations.
28
+
`/plugin/lib/Cron.php` :: `Cron` to schedule operations.
29
29
30
-
`/lib/class-api.php` :: `PLUGIN_API` to integrate 3rd party APIs.
30
+
`/plugin/lib/Api.php` :: `Api` to integrate 3rd party APIs.
31
31
32
-
`lib/table.php` :: `PLUGIN_TABLE` to display data tables.
32
+
`/plugin/lib/Table.php` :: `Table` to display data tables.
33
33
34
-
`/lib/class-ajax.php` :: `PLUGIN_AJAX` to make AJAX requests.
34
+
`/plugin/lib/Ajax.php` :: `Ajax` to make AJAX requests.
35
35
36
-
`/lib/class-upload.php` :: `PLUGIN_UPLOAD` to upload a file.
36
+
`/plugin/lib/Upload.php` :: `Upload` to upload a file.
37
37
38
-
`/lib/class-script.php` :: `PLUGIN_SCRIPT` to add required CSS and JS.
38
+
`/plugin/lib/Script.php` :: `Script` to add required CSS and JS.
39
39
40
-
### `/src` Files
40
+
### `/plugin/src` Files
41
41
42
-
`/src/class-install.php` :: `PLUGIN_INSTALL` to handle activation process.
42
+
`/plugin/src/Install.php` :: `Install` to handle activation process.
43
43
44
-
`/src/class-db.php` :: `PLUGIN_DB` to install database tables.
44
+
`/plugin/src/Db.php` :: `Db` to install database tables.
45
45
46
-
`/src/class-settings.php` :: `PLUGIN_SETTINGS` to create admin settings pages.
46
+
`/plugin/src/Settings.php` :: `Settings` to create admin settings pages.
47
47
48
-
`/src/class-cpt.php` :: `PLUGIN_CPT` to create custom post type.
48
+
`/plugin/src/Cpt.php` :: `Cpt` to create custom post type.
49
49
50
-
`/src/class-widget.php` :: `PLUGIN_WIDGET` to add custom widget.
50
+
`/plugin/src/Widget.php` :: `Widget` to add custom widget.
51
51
52
-
`/src/class-metabox.php` :: `PLUGIN_METABOX` to add custom metabox in editor screen.
52
+
`/plugin/src/Metabox.php` :: `Metabox` to add custom metabox in editor screen.
53
53
54
-
`/src/class-shortcode.php`:: `PLUGIN_SHORTCODE` to add and display shortcodes.
54
+
`/plugin/src/Shortcode.php`:: `Shortcode` to add and display shortcodes.
55
55
56
-
`/src/class-query.php`:: `PLUGIN_QUERY` to use post and user query. It uses `wp_pagenavi()` for breadceumbs
56
+
`/plugin/src/Query.php`:: `Query` to use post and user query. It uses `wp_pagenavi()` for breadceumbs
57
57
58
-
`/src/class-rest.php`:: `PLUGIN_CUSTOM_ROUTE` to extend REST API.
58
+
`/plugin/src/RestApi.php`:: `RestApi` to extend REST API.
0 commit comments