Follow the steps below to set up and start using this WordPress plugin boilerplate for: transfer-press
- Node.js: Version
18 - Composer: Installed globally
- NPM: Installed globally
-
Install PHP dependencies
Run:composer install -
Dump autoload files
Run:composer dump-autoload -
Install Node modules
Run:npm install -
Update Plugin Name and Namespace
Replace the default plugin name and PHP namespace with your custom one:- In all PHP files (classes, autoloaders, etc.)
- In the plugin header commentl
- before activating plugins, run
composer dump-autoload&&composer install
-
Configure Vite Development URL
- Open
vite.config.jsand update therootanddevServerURL as needed. - Update the dev server URL in
app/Hooks/Handlers/AdminMenuHandlers.phpto match your local Vite server (e.g.,http://localhost:5173). - This will run the vue without reloading the page.
- Open