For developers
REST routes, filters and template overrides.
On this page
REST API
The free plugin registers routes under masjidos/v1, including /prayer-times/today, /prayer-times/month, /prayer-times/timetable, /announcements/public, /events/public, /khutbah, /calendar and /salahapi. The admin routes need a logged-in user with the right permission and a REST nonce. Pro keeps its own routes under masjidos-pro/v1.
Filters
| Filter | Use |
|---|---|
masjidos_defaults |
Change default settings (Pro uses it to add keys). |
masjidos_prayer_widget_designs, masjidos_jumuah_widget_designs, masjidos_monthly_prayer_widget_designs, masjidos_announcement_widget_designs |
Add or change the designs a shortcode accepts. |
masjidos_render_prayer_widget_design and the matching masjidos_render_*_widget_design filters |
Render a custom design. |
masjidos_template_path |
Change where templates are looked up. |
masjidos_tv_extra_slides, masjidos_tv_extra_styles |
Add slides or styles to the TV display. |
masjidos_salahapi_document |
Change the SalahAPI document. |
masjidos_admin_nav, masjidos_module_definitions, masjidos_dashboard_data |
Extend the admin. |
Theme templates
Copy a file from public/templates/ in the plugin to your-theme/masjidos/ and edit it. See Blocks and Elementor widgets.
Pro hooks
For school fee SMS reminders, hook masjidos_pro_school_fee_sms. To change whether Pro counts as licensed in a test environment, there is a masjidos_pro_license_valid filter.
Keep Pro data on delete
define( 'MASJIDOS_PRO_KEEP_DATA', true );