Description
MasjidHub – Prayer Times & Mosque Widgets is the official WordPress plugin for the MasjidHub service at masjidhub.se. It connects a mosque’s WordPress site to its MasjidHub account and displays mosque-managed information through responsive shortcodes while keeping MasjidHub as the authoritative source.
Features include:
- Daily prayer and iqamah times.
- Next-prayer and live countdown displays.
- Monthly prayer timetables.
- Jumu’ah sessions.
- Ramadan Sehri and Iftar times.
- Taraweeh and Eid information.
- English and Swedish interfaces with optional Arabic prayer names.
- Responsive designs, colour themes and layout controls.
- A visual shortcode builder for administrators.
- Local caching with an administrator-defined cache duration.
A MasjidHub account and a WordPress connection token are required. The plugin does not load remote JavaScript, CSS, fonts or executable code.
External Service
This plugin connects to the MasjidHub service to retrieve the mosque information shown by its shortcodes. The service is necessary for the plugin’s main functionality.
The plugin makes a request when an administrator tests the connection, manually clears the cache and reloads a widget, or when a visitor opens a page containing a MasjidHub shortcode and no valid cached response exists.
Each request may send:
- The connection token entered by a WordPress administrator.
- The WordPress site’s home URL.
- The requested resource, language, year and month, when applicable.
- The connector version in the request headers.
- The site’s server IP address as part of normal internet communication.
MasjidHub uses this information to authenticate the mosque and return its configured prayer times, iqamah rules, Jumu’ah sessions, Ramadan times, Eid information and related display data. The plugin does not add analytics or visitor-tracking cookies.
MasjidHub service information: https://masjidhub.se/
MasjidHub Terms of Service: https://masjidhub.se/terms
MasjidHub Privacy Policy: https://masjidhub.se/privacy
Privacy
The plugin stores its API URL, connection token, display defaults and cache duration in the WordPress database. API responses are stored as temporary WordPress transients. These settings and tracked cache entries are removed when the plugin is deleted through WordPress.
The plugin also supplies suggested privacy-policy text under Settings > Privacy so site administrators can describe the MasjidHub integration on their own site.
Support
Use the support forum on the plugin’s WordPress.org page for installation, shortcode and compatibility questions. For MasjidHub account, mosque verification or hosted-service questions, contact team@masjidhub.se.
Source Code
The plugin includes the complete, human-readable PHP, JavaScript and CSS source used at runtime. No files are minified or obfuscated, and no compilation or build process is required to modify or regenerate the distributed assets.
Screenshots




Installation
- Upload the plugin ZIP through Plugins > Add New > Upload Plugin, or install it from the WordPress Plugin Directory.
- Activate “MasjidHub – Prayer Times & Mosque Widgets”.
- In MasjidHub, create a WordPress connection token for the mosque.
- In WordPress, open MasjidHub > Connection.
- Enter the HTTPS MasjidHub API URL and connection token, then save.
- Select “Test connection”.
- Open MasjidHub > Shortcode Builder, configure a widget and copy the generated shortcode into a Shortcode block.
FAQ
-
Do I need a MasjidHub account?
-
Yes. The plugin displays data belonging to a mosque registered with MasjidHub and requires a connection token created in that account.
-
Does the plugin track visitors?
-
No. The plugin does not add analytics or tracking cookies. When uncached mosque data is needed, the WordPress server contacts the configured MasjidHub API. The external-service section above lists the information sent with that request.
-
Where is the connection token stored?
-
The token is stored in the WordPress options table and is available only to users who can manage site options. It is sent to the configured MasjidHub API over HTTPS as a bearer token.
-
Can I remove the MasjidHub credit?
-
Yes. Public-facing MasjidHub attribution and its website link are disabled by default. They are rendered only when an administrator explicitly opts in with the
show_powered_by="yes"shortcode option. The Shortcode Builder also defaults this option to “No”. -
How long is prayer data cached?
-
The default is ten minutes. An administrator can choose a duration from one minute to 24 hours on the connection screen or clear the cache manually.
-
Which shortcodes are available?
-
The principal shortcodes are:
[masjidhub_prayer_board][masjidhub_daily][masjidhub_next_prayer][masjidhub_monthly][masjidhub_jumuah][masjidhub_ramadan][masjidhub_taraweeh][masjidhub_eid]
Use MasjidHub > Shortcode Builder to create a configured shortcode without editing its attributes manually.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“MasjidHub – Prayer Times & Mosque Widgets” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “MasjidHub – Prayer Times & Mosque Widgets” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.6
- Loads administration CSS and JavaScript through the WordPress enqueue APIs.
- Removes the unsupported Tested up to field from the main plugin header.
- Documents that all distributed source is human-readable and requires no build process.
- Aligns the text domain and package directory with the reserved WordPress.org slug.
- Clarifies that public MasjidHub attribution is disabled by default and requires explicit administrator opt-in.
- Adds submission-focused security and compatibility validation.
1.0.5
- Adds WordPress.org directory screenshot captions and support guidance.
- Adds the official MasjidHub plugin homepage metadata.
- Includes a complete branded WordPress.org submission asset pack using the original MasjidHub logo.
1.0.4
- Adds a contextual Open MasjidHub link to the administrator-only connection screen.
- Opens the MasjidHub service in a new tab without referral or tracking parameters.
- Keeps public-facing MasjidHub attribution optional and disabled by default.
1.0.3
- Balances spacing above and below the optional Powered by MasjidHub footer.
- Removes duplicated vertical margins before the Jumu’ah and Ramadan sections.
1.0.2
- Reduces excess space around the optional Powered by MasjidHub footer in the Canonical Premium design.
1.0.1
- Keeps the Canonical Premium prayer cards in two columns when the widget is configured with a 450px maximum width.
- Retains single-column stacking for genuinely narrow phone containers.
1.0.0
- Initial WordPress.org release.
- Adds responsive prayer-board, next-prayer, monthly, Jumu’ah, Ramadan, Taraweeh and Eid shortcodes.
- Adds an administrator-only connection screen and visual shortcode builder.
- Adds HTTPS validation, safe outbound requests, bounded API responses and local cache tracking.
- Adds clear external-service and privacy disclosures.
- Makes public-facing attribution optional and disabled by default.
- Removes stored settings and tracked cache entries on uninstall.
