A simple starter kit to work in WordPress plugin development using WordPress Rest API, WP-script, React, React Router, @wordpress/components, @wordpress/dataviews, SCSS, PostCSS, Eslint, WP-Data, WP-Data Store, React Components, React CRUD, i18n, PHPUnit Test, JestUnit Test, WordPress Playwright e2e Test, Gutenberg blocks and PHP OOP plugin architecture easily in a minute.
- WordPress Rest API
- WP-script Setup
- React
- React Router
- TypeScript
- Scss
- PostCSS
- Eslint
- WP-Data
- WP-Data Redux Store [Redux Saga, Generator function, Thunk, Saga Middleware]
- React Components
- React CRUD Operations - Create, Reade, Update, Delete, Status changes and so many...
- Internationalization - WP i18n
- PHPUnit Test [Test + Fix]
- JestUnit Test
- WordPress Playwright e2e Test
- PHP OOP plugin architecture [Traits + Interfaces + Abstract Classes]
- Gutenberg blocks — admin + public job board (Interactivity API)
- Block patterns with editor Replace layouts (jobs list + job detail)
- Auto-created Jobs page on plugin activation
# Clone the Git repository
git clone https://github.com/ManiruzzamanAkash/wp-react-kit.git
# Install PHP-composer dependencies [It's empty]
composer install
# Install node module packages
npm i
# Start development mode
npm start
# Start development with hot reload (Frontend components will be updated automatically if any changes are made)
npm run start:hot
# To run in production
npm run buildAfter running start, or build command, there will be a folder called /build will be generated at the root directory.
You need activate the plugin from plugin list page. http://localhost/wpex/wp-admin/plugins.php
# One by one.
npm run build
npm run makepot
npm run version
npm run zip
# Single release command - which actually will run the above all in single command.
npm run releaseAfter running release command, there will be a folder called /dist will be generated at the root directory with wp-react-kit.zip project files.
composer run testcomposer run test:allnpm run test:unitPlaywright doc link: https://playwright.dev/docs/running-tests
First-time setup
npm run test:e2e:prepareRequirements: Docker running (npm run env:start).
Normal e2e test
npm run test:e2eInteractive e2e test
npm run test:e2e:watchFor more about e2e Tests running please check - https://playwright.dev/docs/running-tests
Get all errors of the project:
composer run phpcsFix all errors of the project:
composer run phpcbfFull Composer test run:
composer run test:allhttp://localhost/wpex/wp-admin/admin.php?page=jobplace#/
Where, /wpex is the project root folder inside /htdocs.
Or, it could be your custom processed URL.
Namespace: job-place/v1 — base URL {site_url}/wp-json/job-place/v1.
Replace {site_url} with your install (e.g. http://foodfruitservice.local or http://localhost/wpex).
| Resource | Methods | Route |
|---|---|---|
| Job types | GET |
/job-types |
| Jobs | GET, POST, DELETE |
/jobs, /jobs/stats, /jobs/{id|slug} |
| Jobs | PUT / PATCH |
/jobs/{id} |
| Companies | GET, POST, DELETE |
/companies, /companies/stats, /companies/dropdown, /companies/{id} |
| Companies | PUT / PATCH |
/companies/{id} |
| Job categories | GET, POST, DELETE |
/job-categories, /job-categories/stats, /job-categories/{id} |
| Job categories | PUT / PATCH |
/job-categories/{id} |
| Settings | GET, PUT / PATCH |
/settings (manage_options) |
Postman: import docs/postman/Job-Place-v1.postman_collection.json and set the site_url collection variable. The old Postman cloud collection predates v1.0.0 and is no longer maintained.
Full reference (parameters, filters, response shapes, examples): Rest-API-Docs.MD
See changelog.txt for the full history.
v1.0.0 - 31/05/2026
- Feat: Jobs DataViews admin, categories, companies, and settings.
- Feat: Public job board blocks with Interactivity API search and pagination.
- Feat: Block patterns with editor Replace for list and detail layouts.
- Enhancement: Full admin refactor with
@wordpress/componentsand@wordpress/dataviews.
v0.9.0 - 20/12/2024
- Fix: Updated PHP version support > 8.0 and some more library support
- Fix: When Editing a Job, last job is being edited
- Update: Tested upto WordPress 6.7.1
v0.8.0 - 24/05/2023
- New feature: WordPress Playwright test-e2e-utils added.
- New feature: Some Gutenberg blocks has support for Playwright test.
v0.7.0 - 01/01/2023
- Fix: Dynamic block renderer issue.
- Fix: Asset registering multiple times issue.
v0.5.0 - 15/11/2022
- New Feature : Job Create.
- New Feature : Job Update.
- New Feature : Job Delete.
- New Feature : Job Status change.
- New API: Company dropdown list.
- New: Updated logo icon and plugin name.
- New Components: Input Text-Editor, Improved design.
- Refactor: Refactored codebase and updated docs.
- New: Job type seeder.
- Chore: Zip file generator.
- Chore: i18n localization generator.
v0.4.1 - 18/08/2022
- Added Jest Unit Test Setup.
- Added some dummy Jest Unit Test.
- Fix #11 - Version naming while installing.
v0.4.0 - 12/08/2022
- Added many re-usable general components.
- Header Component refactored and re-designed.
- WP-Data setup and made Job Store.
- Job List Page frontend added.
v0.3.1 - 11/08/2022
- PHPUnit Test cases setup.
- PHPUnit Test cases added for Job Manager and Job REST API's.
v0.3.0 - 02/08/2022
- Necessary traits to handle - sanitization, query.
- Advanced setup for migration, seeder, REST API.
- Jobs, Job Types REST API developed.
Options for specific files:
Get specific file errors of the project:
vendor/bin/phpcs job-place.phpFix specific file errors of the project:
vendor/bin/phpcbf job-place.phpSimple Version with raw PHP
https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vSimple
Version with EsLint and i18n Setup
https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vSimpleEslint
Version with EsLint, i18n and React Router Setup
https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vReactRouter
Version with PostCSS and Tailwind CSS Setup
https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vTailwindCss
Version with PHPCS setup
https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vPHPCS
Version with PHP OOP Architecture
https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vPhpOOP
Screenshots live in demo-screenshots/.
Block editor — Jobs List block
Block editor — layout patterns (Replace)
Published jobs page
Dashboard
Jobs list
Jobs list — filters
Create job
Companies
Companies — side drawer
Job categories
Settings
Interactive job listings for block themes and classic themes with the block editor.
Requires npm run build so build/blocks/* exists.
- Activate the plugin — a Jobs page is created at
/jobs/(customizable slug). - Edit the page in the Site Editor or block editor.
- Select the Jobs List block → use Replace in the toolbar to pick a layout pattern.
- Publish. Search and pagination work without full page reloads (Interactivity API).
Plugin row links: View Jobs Board / Edit Jobs Board.
| Block | Purpose |
|---|---|
wrc/jobs-list |
Board wrapper (query, search, list, pagination) |
wrc/jobs-template |
Layout repeated for each job |
wrc/job-page |
Single job detail (used in single-job template) |
| Field blocks | Title, company, location, salary, badges, apply button, etc. |
Jobs list: Default, Grid, Compact, Featured
Job detail: Default, Compact, Split
Patterns register against blockTypes so Replace only shows relevant layouts.
Categories: jobplace_jobs, jobplace_jobs_list, jobplace_job_detail.
- Block template:
templates/templates/single-job.html - Permalink settings: Job Manager → permalinks (see admin app)
- Router:
includes/Routing/JobDetailRouter.php
- List uses
role="list"; each job is an<article>. - Job titles link to the detail URL.
- Text fields are escaped in PHP
view.phptemplates.
Open Job Manager → Settings in wp-admin (#/settings).
| Setting | What it does |
|---|---|
| Global job detail layout | Picks a job detail pattern (Default, Compact, Split) for all /jobs/{slug}/ URLs |
| Jobs list page | Which WordPress page contains the Jobs List block |
| Default jobs per page | Fallback page size for listings |
| Default apply button text | Label when Apply blocks have no custom text |
REST: GET/PUT /wp-json/job-place/v1/settings. Permalink base is still under Settings → Permalinks in WordPress.
- Block sources:
src/blocks/— editor JS +view.phprender callbacks. - Interactivity store:
src/scripts/jobs/(@jobplace/jobs). - Global settings:
includes/Common/Settings.php,src/pages/settings/SettingsPage.tsx. - Shared styles:
src/styles/jobs-board.scss(BEM: nest&__elementunder block roots). - Agent/docs detail: see
AGENTS.mdandCLAUDE.md.
Inside src/blocks you'll also find sample blocks (e.g. header). Job board blocks
use the wrc/* namespace and dynamic PHP templates.
See the Screenshots section above for current Job Manager and job board demos.
The legacy wrc/header sample block remains under src/blocks/header/.
Contribution is open and kindly accepted. Before contributing, please check the issues tab if anything in enhancement or bug. If you want to contribute new, please create an issue first with your enhancement or feature idea. Then, fork this repository and make your Pull-Request. I'll approve, if everything goes well.
It's me, Maniruzzaman Akash. Find me at manirujjamanakash@gmail.com












