外掛說明
FlyHR is a free HR management plugin that turns your site into a working HR system. Your employee directory, org structure, leave policies and approval workflow all live in one place, on your own server, with no per-employee fees and no data leaving your hosting.
It’s built as a single-page React application on top of a modern PHP backend, so it feels like a real HR product rather than a set of admin screens bolted onto WordPress. You can see what it looks like and read the documentation at flyhr.co.
Why FlyHR?
- It’s genuinely fast – The whole interface is a single-page React 19 app. Going from the employee directory to a leave request doesn’t reload WordPress admin every time.
- Leave balances that actually add up – Most HR plugins track leave with a counter that gets incremented and decremented. FlyHR uses a double-entry ledger, the same approach accounting software uses, so every entitlement, deduction and refund is a recorded entry you can trace.
- Your data stays yours – FlyHR is 100% self-hosted. Salary history, termination records and personal details sit in your database, not on someone else’s cloud. FlyHR is GPL licensed.
- It doesn’t pollute your database – Everything lives in dedicated
wp_flyhr_*tables. No thousands of rows dumped intowp_postsandwp_postmeta, no slowing down the rest of your site. - It’s built to be extended – REST endpoints under the
/flyhr/v1/namespace, a PSR-11 dependency injection container, and Action Scheduler for background work.
Employee Management
Keep every staff record in one searchable place, from the day someone is hired to the day they leave and beyond.
- Employee directory – Search and filter everyone in the company from a single screen
- Full profiles – Personal details, contact information and avatars
- Job and organizational data – Department, designation, location and supervisor on every record
- Job history ledger – Four separate categories tracked over time: employment status, employment type, compensation and job role, so you always know who changed what and when
- WordPress user conversion – Turn an employee record into a WordPress user with the right role in one step
- Email conflict detection – You never end up with two records fighting over the same address
- Private HR notes – Internal notes on an employee that regular staff can’t see
- Termination workflow – Plus reactivation and restoration for when someone comes back
- Safe delete – With a force option for when you really mean it
Departments and Designations
Build the org chart your company actually has, not the flat list most plugins give you.
- Parent and child departments – Real hierarchy, not a single flat list
- Department leads – Assign a lead who can approve leave for their own team
- Designation library – Job titles with descriptions and an active or inactive status
Leave Types and Policies
Leave rules are where most HR plugins fall apart. FlyHR lets you describe how your company actually works instead of forcing one blanket rule on everyone.
- Any leave type you need – Annual, sick, casual, maternity, paternity, unpaid, or something specific to your business
- Multi-attribute policies – Scope a policy across several attributes, so contractors, a single department or one office location can each get their own entitlements
- Ledger-based entitlements – Entitlements are issued through the ledger, so balances are always auditable
Leave Requests and Approvals
Staff request their own time off, managers approve it, and the balances take care of themselves.
- Employee self-service – Staff submit their own requests, validated against their available balance before they can send it
- Two-tier approval – Department lead reviews first, then an HR manager gives final approval
- Mandatory rejection reasons – Rejections need a written explanation, so nobody is left guessing
- Automatic balance handling – Approved days are deducted and cancelled days are refunded, with no manual correction
- Bulk processing – Clear a queue of pending requests in one pass
- Email notifications – Automatic messages at each step of the request
Holidays and Working Schedule
- Public and company holidays – Single-day or spanning several days
- Interactive calendar – See who’s off and when, across the whole team
- Working days and financial year – Configure both to match your company
Administration and Security
- Onboarding wizard – A first-run setup that has you going in minutes instead of an afternoon
- Light and dark themes – Plus a navigation layout you can adjust to your taste
- Role-based access control – Distinct HR Manager and Employee roles, so people only see what they should
Built for Developers
FlyHR is designed to be extended. Connect payroll, build a mobile app, or write your own reporting on top of it.
- Full REST API under the
/flyhr/v1/namespace - Endpoints for employees, departments, designations, leave types, policies, requests and holidays
- PSR-11 dependency injection container in the PHP backend
- Action Scheduler for background jobs, so heavy work never blocks a page load
- Dedicated
wp_flyhr_*database tables with a clean, namespaced codebase - Complete uncompiled source shipped in
assets/src/
Built by weDevs
FlyHR comes from the team behind WP ERP, the business management suite trusted by tens of thousands of WordPress sites. FlyHR is a fresh take on that experience, rebuilt from scratch for today’s WordPress. There’s more about the plugin and the team at flyhr.co.
What’s Included (Free)
- Unlimited employees, with no per-employee charge
- Employee directory with search, filtering and full profiles
- Job history ledger for status, employment, compensation and role changes
- WordPress user conversion and email conflict detection
- Private HR notes on employee records
- Termination, reactivation, restoration, and safe or force deletion
- Hierarchical departments with department leads
- Designation library with descriptions and active status
- Custom leave types and a multi-attribute policy builder
- Double-entry leave ledger with automatic refunds
- Leave requests with two-tier approval and mandatory rejection reasons
- Bulk approval processing and email notifications
- Public and company holidays with an interactive calendar, imported from iCal (.ics) or CSV
- Org chart of teams and reporting lines
- Six HR reports: age, gender, head count, salary history, years of service and leave
- Announcements to everyone, a department, a designation or chosen people, with read status
- Performance reviews on five criteria, reviewer comments and goals
- Birthday and work anniversary emails
- HR audit log of every change, with who made it and the old and new values
- Import employees from CSV and export them
- Working day and financial year configuration
- First-run onboarding wizard
- Light and dark themes with adjustable navigation
- HR Manager and Employee roles
- REST API under the
flyhr/v1namespace
Third-party services
The HR dashboard shows a small current-weather chip beside the greeting. To draw it, the browser (never the server) contacts these services, and only while the dashboard is open:
- Open-Meteo (api.open-meteo.com) receives a latitude and longitude and returns the current conditions. Terms
- GeoJS (get.geojs.io) is asked for an approximate location from the visitor’s IP address, only when the browser’s own geolocation is declined or unavailable. Terms, Privacy
- BigDataCloud (api.bigdatacloud.net) receives the same coordinates and returns a place name to print beside the temperature, only when the browser supplied the location. Terms, Privacy
No employee record, user name, email address or site URL is sent to any of them. The browser asks for location permission once; declining it leaves a “Show weather” button and nothing else. The reading is kept in the browser tab’s session storage for fifteen minutes so the services are not contacted on every visit.
The optional demo-data command for developers, wp flyhr seed, runs only when an administrator types it on the server’s command line. It downloads one sample portrait per seeded employee from Random User Generator (randomuser.me); nothing is sent beyond the image address. Pass --no-photos to skip it. Terms and photo credits
Source Code & Build Process
The JavaScript and CSS files shipped in the assets/dist/ directory are compiled and minified production builds generated with webpack. The complete, human-readable source code for these files is included inside this plugin so it can be freely reviewed, studied, modified, and rebuilt:
assets/src/– the full React/TypeScript application and Tailwind CSS source.webpack.config.js– the build configuration that compilesassets/src/intoassets/dist/.package.json,tsconfig.json,postcss.config.js– the tooling configuration.
No external download is required – everything needed to read and rebuild the compiled assets ships with the plugin.
Build tools
The frontend is built with webpack via @wordpress/scripts, using pnpm as the package manager. PHP dependencies are managed with Composer.
Building the compiled assets from source
From the plugin directory:
- Install PHP dependencies:
composer install - Install JavaScript dependencies:
pnpm install - Create the production builds in
assets/dist/:pnpm build - For development with hot reloading, run:
pnpm dev
Running pnpm build reads the source in assets/src/ and regenerates every minified file in assets/dist/.
Bundled fonts
The interface font, DM Sans by Colophon Foundry, ships inside the plugin in assets/dist/fonts/ (built from the @fontsource-variable/dm-sans package). It is licensed under the SIL Open Font License 1.1 and is never loaded from an outside server.
螢幕擷圖












安裝方式
Automatic installation
- Search for FlyHR in Plugins > Add New.
- Click Install Now, then Activate.
- Follow the onboarding wizard to create your first department, designation and leave type.
Manual installation
- Download the plugin ZIP file from WordPress.org.
- Go to Plugins > Add New > Upload Plugin and choose the file.
- Click Install Now, then Activate.
After activation
FlyHR sets up its own database tables and walks you through a short wizard. You will create a department, a designation and a leave type, and from there you can start adding employees. Nothing else needs configuring before you are useful.
常見問題集
-
Is FlyHR really free?
-
Yes. FlyHR is free and released under the GPL. There are no per-employee charges and no limit on how many people you can add.
-
Does my employee data go to any external service?
-
No. FlyHR is fully self-hosted. Every record sits in your own WordPress database on your own server. No employee data is sent anywhere else, and there’s no API key or account to sign up for. The one outside call the plugin makes is the dashboard’s weather chip, which asks your browser for your location and sends those coordinates (or, if you decline, your IP address) to a forecast service. See “Third-party services” above.
-
Where are uploaded HR files stored, and who can open them?
-
Leave documents (and, with FlyHR Pro, CVs, documents and receipts) are stored in
wp-content/uploads/flyhr-private/under names that start with 32 random characters, so their address cannot be guessed. FlyHR’s screens open them through a link that checks who is asking: a leave document opens for the employee who sent it, HR, and the lead of their department. Files uploaded before this was added are moved there automatically in the background. Apache and IIS refuse direct requests to the folder on their own. On nginx, addlocation ^~ /wp-content/uploads/flyhr-private/ { deny all; }to your server block to block direct requests outright. -
Do employees need WordPress accounts?
-
Not necessarily. You can keep employee records without WordPress users at all, which is handy for staff who’ll never log in. When you do want someone to submit their own leave requests, FlyHR converts their record into a WordPress user with the correct role in one step.
-
How is leave tracking different from other HR plugins?
-
Most plugins keep a single number per employee and adjust it up or down. FlyHR records every entitlement, deduction and refund as an entry in a double-entry ledger. Balances can always be explained, cancellations and rejections restore days automatically, and you get a full history instead of just a current figure.
-
Can department leads approve leave?
-
Yes. FlyHR uses two-tier approval. The department lead you’ve assigned reviews the request first, then an HR manager gives final approval. Rejections at either stage require a written reason.
-
Can I set up different leave rules for different groups of employees?
-
Yes. The leave policy builder scopes a policy across multiple attributes, so contractors, a specific department or a particular office location can each get their own entitlements. You don’t have to apply one rule to the whole company.
-
Will FlyHR slow down my site, and does it work with my theme?
-
It shouldn’t, and yes it does. FlyHR uses its own dedicated
wp_flyhr_*tables instead of stuffing everything intowp_postsandwp_postmeta, so your posts tables stay clean. Heavy operations run in the background through Action Scheduler rather than blocking page loads. The whole plugin runs inside the WordPress admin, so your theme doesn’t affect it and it doesn’t affect your frontend. -
Does FlyHR have a REST API?
-
Yes. Endpoints are registered under the
/flyhr/v1/namespace, covering employees, departments, designations, leave types, policies, requests and holidays. The backend uses a PSR-11 container, so extending it is straightforward. -
What happens when an employee leaves the company?
-
Run the termination workflow. The record is kept with its full job history rather than erased, so your records stay intact for reporting and compliance. If that person is rehired later, you can reactivate and restore them instead of starting a new record from scratch.
-
Is FlyHR translation ready?
-
Yes. All strings are translatable, in both the PHP backend and the React interface, using standard WordPress translation tools.
-
I already use WP ERP. Should I switch?
-
FlyHR is a separate plugin with its own database tables, not an upgrade path from WP ERP. If you’re happy with WP ERP HRM, stay there. FlyHR is for people who want a faster, more modern interface and a ledger-based approach to leave.
-
Where do I report bugs or request features?
-
Bugs go to the support forum on the plugin page, or the contact details at flyhr.co. Please include your WordPress version, PHP version and the steps to reproduce the issue, since that’s usually the difference between a quick fix and a long back-and-forth.
Feature requests go to the FlyHR feedback board, where you can also vote on what others have asked for. The Feedback button in the plugin’s top bar opens the same board.
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
以下人員參與了開源軟體〈FlyHR: HR Management & Leave Management, Unlimited Employees〉的開發相關工作。
參與者變更記錄
1.0.0 – Nov 18, 2026
Update: Major release. FlyHR 1.0.0 needs WordPress 6.6 or newer and PHP 8.0 or newer. Your existing employees, leave and settings stay as they are; new tables and columns are added automatically the first time an administrator opens the dashboard after updating.
New: Org Chart (People, Org Chart): every team drawn under its lead, with reporting lines from Reports To, a team filter and zoom. Everyone in FlyHR can see it; email addresses show to HR managers only.
New: HR Reports for HR managers: Age Profile, Gender Profile, Head Count, Salary History, Years of Service and a Leave report, with charts and tables, in the company date format and currency.
New: Announcements: HR posts to everyone, a department, a designation or chosen people, as a draft or published, with an email to each recipient. Employees read theirs in My Announcements and on the dashboard’s Latest Announcements card, with read status.
New: Office locations: add locations and assign one to each employee.
New: Import employees from a CSV file, in the setup wizard or on the Employees page, and export them to CSV.
New: Reworked setup wizard: company details, work days and hours, leave year, departments, designations and employee import, with clear errors for each row. Load sample data to try FlyHR before adding your own.
New: General settings: company start date, financial year, date format, currency, country, and a login redirect that takes HR managers and employees straight to FlyHR. HR can edit the company’s name and contact details.
New: Settings is grouped into Company, Email, Modules and Website sections, and any section can be opened directly from a link. The new Shortcodes section lists every shortcode you can place on a page and what it shows.
New: Hide Pay Rate (Settings, Miscellaneous) blurs pay on the employee profile behind an eye button, and Remove WP User also deletes the WordPress account when an employee is deleted.
New: Email Templates tab with every email, each with an editable subject, heading and body, and Email Sender settings for the sender name, address, header image and footer. Emails are signed with the company name.
New: Welcome email for a new employee when the form asks for it, with their username and a link to set a password.
New: Personal details on the employee profile: blood group, family names, phone numbers, other email, date of birth, nationality, gender, marital status, driving license, hobbies, website, address and a biography. Employees can keep their own up to date.
New: Leave and Notes buttons on the employee profile header open the leave request and note forms in one click.
New: Requests inbox that gathers leave requests, and the request types FlyHR Pro adds, in one place with tabs and counts.
New: Setup checklist on the dashboard for HR managers: company details, leave year, departments, designations, leave policies, holidays and employees, each ticked as soon as it is done, with a button to the screen that does it.
New: Redesigned dashboard, leave calendar and My Profile screens, a welcome screen on the first visit, and a weather card on the dashboard. On small screens the top bar folds extra items into a More menu, and the WordPress sidebar lists the same entries as the top bar.
New: FlyHR Pro support: Pro modules appear in the same menu and screens when FlyHR Pro is installed. Without Pro, a Go Pro page shows what it adds.
New: Performance on the employee profile: reviews rated on five criteria, reviewer comments and goals with a completion date and both sides’ assessment.
New: Work anniversary email on an employee’s hiring anniversary, next to the birthday wish, editable under Email Templates.
New: Import holidays from an iCal (.ics) or CSV file.
New: Audit Log for administrators (Settings menu, Audit Log): every HR change, from employees, job history, departments, designations and office locations to leave types, policies, requests, entitlements, holidays, financial years, announcements, notes, performance records, HR roles and settings, with who made it, when and the old and new values. Search it and filter by section or date. Add-ons write to it too.
New: Redesigned Settings screen: one card with the section list beside the settings, each setting in its own row, a save that fails shows its message under the field it is about, and any email template can be put back to its default wording.
New: FlyHR’s own look: the logo violet as the main colour and the DM Sans font, bundled with the plugin and never loaded from an outside server.
Improved: Accessibility checked against WCAG 2.2 AA: every picker, date field and editor toolbar has a name a screen reader reads out, muted text and placeholders meet contrast in light and dark mode, charts read as one described image, and small buttons are large enough to tap.
Improved: Employee pickers (Reports To, Reviewer, leave and entitlement Employee, announcement recipients and more) show each person’s photo, keep long names whole, and open as wide as their field.
Improved: An employee’s uploaded photo is their avatar everywhere, including leave requests, the leave calendar, the dashboard and search.
Improved: Employees can request leave and edit their own profile; department leads can approve their team’s leave.
Improved: Leave forms show errors next to each field and check the dates as you pick them, refusing a range with no working day or in a closed leave year before anything is sent; a missing leave year or policy can be added from the form.
Improved: Leave request, entitlement and policy lists apply every filter they show, and the request tab counts follow those filters.
Improved: A forwarded leave request can be approved or rejected straight from its row, and half-day leave is marked AM or PM on the leave calendars.
Improved: Leave balance card counts carried-forward days; gender-scoped leave policies only reach people whose gender is recorded; job changes dated in the future take effect on their date.
Improved: Changing an employee’s type moves their leave to the new type’s policies; deleting a leave policy removes its entitlements and requests.
Improved: Changing an employee’s status on the edit form warns first and is passed on to Payroll and Attendance.
Improved: Search employees by Employee ID; the Update Job Information form opens with the current values; the employee form saves every field it shows, including the end date, and a new employee starts with a job history.
Improved: Departments and designations show how many people they have, and the dashboard calendar shades the company’s own days off.
Improved: Leave history and dashboard dates use the company date format.
Improved: Dark mode headings and card titles use the theme’s text colour; searchable lists open with the same animation as other lists; a date range picker starts a new range on the first click after one is applied; long values such as a website or email wrap inside the profile cards; Leave, Resign and Log out each have their own icon.
Improved: Upgrade and Feedback show to HR managers only.
Improved: Employees who switch notifications off get no FlyHR email.
Security: Every screen and API checks the user’s role, so employees and department leads only see and change what they should. Terminated department leads lose their approval rights, and a department lead cannot approve their own leave.
Security: Colleagues no longer see each other’s pay, birth year or termination details, or former employees’ profiles. The account routes answer HR users only.
Security: People whose HR record is terminated, resigned, deceased, inactive or trashed can no longer open FlyHR; administrators are never locked out.
Security: An HR manager can no longer delete, take over, terminate or change the photo of an account with more access, such as an administrator, editor or shop manager. A terminated person can no longer be chosen as anyone’s Reports To.
Security: Uploaded files are stored privately and served only to people allowed to see them; stored text is escaped; CSV exports are protected against spreadsheet formulas.
Security: The weather card no longer sends a location worked out from the visitor’s IP address to an outside lookup service.
Fixed: In dark mode, text typed into any form or dialog, and an email template’s subject and body, are readable instead of dark grey.
Fixed: An emoji such as the dashboard greeting’s wave shows as text instead of a broken image when WordPress’s emoji service cannot be reached.
Fixed: The profile of a WordPress user who has no employee record, such as an administrator, no longer shows tabs that cannot load.
Fixed: Leave dates, the leave calendar, the leave year and the dashboard’s months and birthdays follow the site’s timezone, and leave days stay on the same date when the timezone is changed in Settings > General.
Fixed: Duplicate leave requests and requests in a past leave year are refused instead of staying pending forever. When two managers decide on the same request at once, only the first decision counts.
Fixed: Holidays, office hours and leave policies refuse invalid values; over-long notes show a clear error; a termination date before the date of hire is refused.
Fixed: A website longer than 100 characters is refused with a message instead of being dropped while the form said it was saved.
Fixed: A job update made on the same day as an edit on the employee form is no longer overwritten by the form.
Fixed: Country names with accents, such as Åland Islands and Curaçao, read correctly in every country list.
Fixed: A dropdown shows its value even when its options load after the form opens, and the options of a radio or checkbox field can be picked by clicking their text.
Fixed: Employee list checkboxes show only to people who can use a bulk action.
Fixed: The All Years status counts on Leave Requests count every leave year, and two leave requests filed for one person at the same moment can no longer both be saved.
Fixed: Remove photo is offered only when a photo was uploaded, and a request the server takes too long to answer says so instead of showing “signal is aborted without reason”.
Fixed: Translations load at the right time and the leave request list no longer logs a notice, so no warnings appear in the debug log.
0.1.0
- Initial release
- Employee management with job history, notes, photo, and termination
- Departments and designations
- Leave types, policies, and per-employee entitlements
- Leave requests with approvals, rejections, and email notifications
- Holidays and a combined leave calendar
- Financial years and per-weekday workday settings
- First-run setup wizard
- HR Manager and Employee roles with per-record permission checks
- REST API under the
flyhr/v1namespace
