Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/gusphiri/staff-shift-log-legacy/archive/refs/heads/main.zipUpdates itself. It ships its own updater (Update URI header), so new versions appear under Dashboard → Updates.
A WordPress plugin for logging and managing staff shift requests with admin approval.
Features
- Staff can submit shift requests from the frontend
- Administrators can approve or reject shift requests
- Calendar view of all shifts
- Dashboard widget for quick access to shift submission
- Admin bar menu for quick access to shift management
- Download shift calendar in CSV, Excel, or PDF format
Installation
- Upload the
staff-shift-logfolder to the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Create a page and add the shortcode
[staff_shift_form]to display the shift submission form - Create a page and add the shortcode
[staff_shift_calendar]to display the calendar view
Calendar Download Feature
The plugin includes a feature to download the shift calendar in various formats (CSV, Excel, PDF). To use this feature, you need to install the required dependencies:
Option 1: Using Composer (Recommended)
- Make sure you have Composer installed on your server
- Navigate to the plugin directory:
cd /path/to/wp-content/plugins/staff-shift-log - Run:
composer install
Option 2: Manual Installation
If you can't use Composer, you can manually download and install the required libraries:
- Download PhpSpreadsheet and TCPDF
- Create a
vendordirectory in the plugin folder - Extract the libraries into the
vendordirectory
Usage
For Staff
- Navigate to the page with the
[staff_shift_form]shortcode - Fill out the shift request form and submit
- View your shift requests on the calendar page
For Administrators
- Go to the WordPress admin area
- Navigate to "Staff Shifts" in the admin menu
- Approve or reject shift requests
- Use the "Download Calendar" feature to export the shift calendar
Shortcodes
[staff_shift_form]- Displays the shift submission form[staff_shift_calendar]- Displays the calendar view of all shifts
Requirements
- WordPress 5.8 or higher
- PHP 7.4 or higher
- MySQL 5.7 or higher
License
This plugin is licensed under the GPL v2 or later.
Author
Augustin Phiri - Website