A WordPress plugin for displaying Islamic prayer times with real-time updates and countdown timers.
- Configurable API Endpoint: No hardcoded URLs - connect to any compatible prayer times API
- Public Display: Beautiful, responsive prayer times table with current prayer highlighting
- Real-Time Countdown: Live countdown timer to the next prayer (updates every second)
- Automatic Updates: CRON-based automated fetching on configured days
- Manual Control: Admin bar button for instant manual updates
- Smart Caching: 1-hour API response caching for improved performance
- Admin Tools: Test API connection and clear cache with one click
- Dark Mode Support: Automatically adapts to system color scheme preferences
- Responsive Design: Works seamlessly on desktop, tablet, and mobile devices
- Upload the
salah-times-pluginfolder to/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Go to Admin Menu → Salah Times to configure settings
-
API Base URL: Enter the base URL for your prayer times API (including
/apiif needed)- Example:
https://example.com/api - The plugin will append endpoint paths like
/all,/fajr, etc.
- Example:
-
Location Name: Display name for your location (e.g., "Durham", "New York")
- Fetch Days: Select which days of the week to automatically fetch prayer times
- Enable CRON Job: Toggle daily automated updates on/off
Add the shortcode to any page or post:
[salah_times]
This will display a table showing:
- All prayer times (Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha)
- Current prayer highlighted in blue
- Real-time countdown to next prayer
- Location name and current date
Use the "Manual Update" button in the WordPress admin bar to fetch the latest prayer times immediately.
The settings page includes helpful tools:
- Test API Connection: Verify your API configuration is working
- Clear API Cache: Force refresh of cached data
The plugin supports the following API endpoints (appended to your base URL):
/all- Get all prayer times/fajr- Get Fajr time/dhuhr- Get Dhuhr time/asr- Get Asr time/maghrib- Get Maghrib time/isha- Get Isha time/shurooq- Get sunrise time
All endpoints support an optional date parameter in ISO 8601 format (YYYY-MM-DD).
- Version: 0.2.4.1
- Requires WordPress: 5.0 or higher
- PHP Version: 7.0 or higher
- License: GPL v2 or later
- Cache Duration: 1 hour (WordPress transients)
- Auto-refresh: Midnight daily for new prayer times
For development guidelines and architecture details, see CLAUDE.md.
The plugin automatically creates release packages when you push a version tag:
git tag v1.2.0
git push origin v1.2.0This will:
- Create a zip package excluding development files
- Generate SHA256 checksum
- Create a GitHub release with downloadable assets
Use the included packaging script:
# Build with specific version
./package.sh 1.2.0
# Build with dev timestamp
./package.shThe script will create a dist/ directory with:
salah-times-plugin-{version}.zip- Ready for WordPress uploadsalah-times-plugin-{version}.zip.sha256- SHA256 checksumsalah-times-plugin-{version}.zip.md5- MD5 checksum
Abdur-Rahman Bilal (MTWSNC)
- GitHub: @aramb-dev
This plugin is developed for MTWS website iqaamah times functionality.
For issues and feature requests, please use the GitHub repository.