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
* Add a new menu item in `includes/Admin/Menu.php` file by copying the existing menu item and changing the name, slug, component etc based on the new page.
51
51
* If it needs to store any data in database then add a new model in `includes/Models/{YourCustomModel}.php` file. And migration file in `/database/migrations` directory.
52
52
* If it needs to manipulate data in database then add a new controller in `includes/Controllers/{YourCustomController}/Actions.php` file.
@@ -55,9 +55,9 @@ Route callbacks are functions defined as controller methods. Controller files ar
55
55
56
56
## How to add new component
57
57
58
-
* Create a new file in `js/src/components/{your-component-name}/` directory.
59
-
* Use the component in `js/src/pages/{your-page-slug}.jsx` file.
60
-
* ShadcnUI components are located in `js/src/components/ui` directory.
58
+
* Create a new file in `src/admin/components/{your-component-name}/` directory.
59
+
* Use the component in `src/admin/pages/{your-page-slug}.jsx` file.
60
+
* ShadcnUI components are located in `src/admin/components/ui` directory.
61
61
62
62
## Pass data from backend to frontend as javascript object.
63
63
* If you want to pass data from backend to frontend as javascript object then add key value pari in `/includes/Frontend/Frontend.php` file in `get_data` method. This data will be available in frontend as `wordpressPluginBoilerplate` object or which is defined in `const OBJ_NAME` variable in `Frontend.php` file.
0 commit comments