Moodle plugin types are the categories every Moodle add-on belongs to. Moodle 5.3 defines 45 core plugin types in lib/components.json, plus subplugin types that live inside other plugins. The ones you meet most are activity modules (mod), blocks (block), local plugins (local), themes (theme), authentication (auth), enrolment (enrol), reports (report), question types (qtype), course formats (format), text filters (filter), admin tools (tool) and, since Moodle 4.5, AI providers and AI placements. The type decides where the plugin's folder goes and what it can do; pick the most specific type that fits, and use a local plugin only when nothing else does.
Key takeaways
- Every Moodle plugin has a type and a name, joined as its component (Frankenstyle) name, for example mod_forum or local_myplugin.
- Moodle 5.3 lists 45 plugin types in lib/components.json; activity modules, blocks, themes, auth, enrol and local plugins cover most custom work.
- Subplugins (for example assignment submission types, quiz access rules and TinyMCE plugins) extend one specific plugin.
- Moodle 4.5 added AI provider, AI placement and SMS gateway types; 5.0 added grade penalties and removed the Atto editor from core.
- From Moodle 5.1 the plugin folders sit under /public in the code tree.
- Use a local plugin only for features with no better home: event observers, web services, admin settings or navigation changes.
What is a Moodle plugin type?
A Moodle plugin is a folder of code that adds a feature to Moodle. Every plugin belongs to exactly one plugin type. The type tells Moodle where to find the plugin, when to load it and which APIs it must implement. A block can only appear as a panel on a page; an enrolment plugin can only decide how people join a course; a theme can only change how pages look.
Each plugin's full name, its component or "Frankenstyle" name, joins the type and the plugin's own name with an underscore: mod_forum is the forum activity, block_html is the text block and local_myplugin would be a custom local plugin. The list of plugin types and their folders is in Moodle's own lib/components.json file.
How many plugin types does Moodle have?
Moodle 5.3 defines 45 plugin types in lib/components.json, and other plugins add their own subplugin types on top. The list changes slowly between versions:
- Moodle 4.3 added the
communicationtype (communication providers such as Matrix). - Moodle 4.5 added
aiproviderandaiplacementfor the Moodle AI subsystem, andsmsgatewayfor sending SMS. - Moodle 5.0 added
gradepenalty(for example penalties for late submissions), deprecated the old MNet services type, and removed the Atto editor from core, so TinyMCE (editor_tiny) is the core editor. - Moodle 5.1 moved the web-facing code into a
publicfolder, so a local plugin now lives inpublic/localrather thanlocal.
Which Moodle plugin types will you use most?
These are the types behind most plugins you will install or build, with the folder each uses in Moodle 5.3 and an example that ships with Moodle:
| Plugin type | Component prefix | Folder in Moodle 5.3 | What it is for | Example in core |
|---|---|---|---|---|
| Activity modules | mod_ | public/mod | Activities and resources inside a course | mod_forum, mod_quiz, mod_assign |
| Blocks | block_ | public/blocks | Small panels on course, dashboard and site pages | block_html, block_timeline |
| Local plugins | local_ | public/local | Site-wide custom features that fit no other type | None in core (custom only) |
| Themes | theme_ | public/theme | The look, layout and templates of the site | theme_boost |
| Authentication | auth_ | public/auth | How users log in (SSO, LDAP, OAuth 2) | auth_manual, auth_ldap, auth_oauth2 |
| Enrolment | enrol_ | public/enrol | How users get into courses | enrol_self, enrol_cohort, enrol_fee |
| Reports | report_ | public/report | Site and course reports for admins and teachers | report_log |
| Gradebook reports | gradereport_ | public/grade/report | Ways to view and edit grades | gradereport_grader |
| Question types | qtype_ | public/question/type | New kinds of quiz question | qtype_multichoice |
| Course formats | format_ | public/course/format | How a course page is laid out | format_topics, format_weeks |
| Text filters | filter_ | public/filter | Change text as it is displayed (maths, media, links) | filter_mathjaxloader |
| Admin tools | tool_ | public/admin/tool | Admin utilities and maintenance tasks | tool_uploaduser |
| Repositories | repository_ | public/repository | Connect external file sources | repository_upload |
| AI providers | aiprovider_ | public/ai/provider | Connect Moodle to an AI service (4.5+) | aiprovider_openai |
| AI placements | aiplacement_ | public/ai/placement | Where users see AI features (4.5+) | aiplacement_editor |
| Payment gateways | paygw_ | public/payment/gateway | Take payments, for example for course fees | paygw_paypal |
| Availability conditions | availability_ | public/availability/condition | Rules that restrict access to activities and sections | availability_date |
| Custom fields | customfield_ | public/customfield/field | Field types for custom course fields | customfield_text |
| Message outputs | message_ | public/message/output | Where notifications are sent | message_email |
What are the other Moodle plugin types?
The remaining types are more specialised. Most sites never build one, but you will see them in the plugins list under Site administration > Plugins > Plugins overview.
| Group | Plugin types (component prefix) |
|---|---|
| Grading and gradebook | gradeexport, gradeimport, gradingform (for example rubrics), gradepenalty (5.0+), gradereport |
| Questions | qbank (question bank features), qbehaviour (how students interact with questions), qformat (import and export, for example GIFT), qtype |
| Content and editing | editor (TinyMCE is the core editor), contenttype (content bank), h5plib, media (players), fileconverter, dataformat |
| Users and access | auth, enrol, profilefield (user profile field types), availability, calendartype |
| Communication | message, communication (4.3+), smsgateway (4.5+) |
| Site infrastructure | cachestore, cachelock, search (search engines), antivirus, webservice (protocols such as REST), mlbackend (analytics) |
| Integrity and portfolios | plagiarism, portfolio, repository |
| Legacy | coursereport (course reports before Moodle 2.2; use report today) |
What are Moodle subplugins?
A subplugin extends one specific plugin rather than Moodle as a whole. Subplugin types are declared in the parent plugin's db/subplugins.json file.
| Subplugin type | Belongs to | Example |
|---|---|---|
| assignsubmission, assignfeedback | Assignment (mod_assign) | assignsubmission_file |
| quiz (reports), quizaccess (access rules) | Quiz (mod_quiz) | quizaccess_seb (Safe Exam Browser) |
| tiny | TinyMCE editor (editor_tiny) | TinyMCE media plugin |
| ltisource, ltiservice | External tool (mod_lti) | LTI services |
| datafield, datapreset | Database activity (mod_data) | Field types for the Database activity |
| workshopform, workshopallocation, workshopeval | Workshop (mod_workshop) | Grading strategies |
| booktool, scormreport, forumreport | Book, SCORM and Forum activities | Book tools, SCORM reports |
| logstore | Logging (tool_log) | Event log storage |
If you want a new way for students to submit assignments, build an assignsubmission subplugin, not a new activity. If you want an extra check before a quiz starts, build a quizaccess rule.
What is the difference between a local plugin and other plugin types?
Moodle's developer documentation recommends a standard type (activity, block, auth, enrol and so on) whenever one fits, and a local plugin only when none does. Typical local plugins are event observers that talk to external systems (an HRMS or CRM, for example), custom web services, extra admin settings and navigation changes. Local plugins are installed and upgraded last, can add settings to any admin page and do not need a user interface of their own.
A common mistake is to put everything into one large local plugin. It works, but a report belongs in a report plugin and a dashboard panel in a block, which makes each part easier to permission, test and upgrade.
Which plugin type should you choose?
Start from where the feature appears to the user:
- Something students do inside a course: an activity module (
mod), or a subplugin of an existing activity. - A panel on the dashboard or course page: a block.
- A new way to log in (SSO, a partner portal): an auth plugin. A new way to join courses (from an HR feed, after payment): an enrol plugin.
- A page of data for managers or admins: a report plugin (or the core custom reports tool, if it is enough).
- A new question format: a qtype. A different course layout: a format. A new look: a theme (usually a child of Boost).
- A connection to an AI service: an aiprovider; a new place to show AI features: an aiplacement.
- Background sync, web services or site-wide rules with no obvious home: a local plugin.
- 1Pick the type and name
Choose the most specific plugin type, then a machine name in lowercase letters, numbers and underscores (activity modules cannot use underscores). The component is type_name, for example local_hrsync.
- 2Create the folder
Put the plugin in that type's folder, for example public/local/hrsync in Moodle 5.1 and later, or local/hrsync in Moodle 5.0 and earlier.
- 3Add version.php
Every plugin needs version.php with its component name, version number and the minimum Moodle version it requires.
- 4Add the language file
Add lang/en/local_hrsync.php with at least the pluginname string, so Moodle can show the plugin's name.
- 5Add only the files you need
For example db/install.xml for database tables, db/access.php for capabilities, db/tasks.php for scheduled tasks, db/services.php for web services, settings.php for admin settings and classes/ for your PHP classes.
- 6Install and test
Visit Site administration > Notifications (or run the CLI upgrade) to install it, then test on a staging copy before production.
What files does every Moodle plugin need?
Only two files are required in every plugin: version.php and the English language file lang/en/type_name.php. Everything else is optional and depends on what the plugin does, for example lib.php for callbacks, db/upgrade.php for database changes between versions, db/events.php for event observers, amd/ for JavaScript modules and backup/ for course backup support. Moodle's common plugin files page lists them all.
Where do you find plugins of each type?
The Moodle plugins directory lists more than 2,000 community plugins and lets you filter by plugin type and Moodle version. Check the supported versions, the last release date and the maintainer before installing anything on a live site. Our list of the best Moodle plugins and the AI plugins for Moodle are good starting points.
How does EDZLMS use these plugin types?
Our team builds and maintains 40 in-house Moodle plugins across these types: local plugins for HRMS and CRM sync and web services, report plugins for multi-level manager reports, enrolment and authentication plugins for SSO and partner portals, course formats, blocks and Boost child themes. Our Moodle development services team scopes which plugin type each requirement needs before any code is written, and our Moodle DevOps support team keeps custom plugins working through upgrades such as 4.5 to 5.3.
Before you build, search
Check the Moodle plugins directory and Moodle's own features (custom reports, custom fields, availability rules) first. A maintained plugin or a core setting is usually cheaper to keep than custom code.
Frequently asked questions
What are Moodle plugin types?
Plugin types are the categories that every Moodle add-on belongs to, such as activity modules, blocks, themes, authentication, enrolment, reports and local plugins. The type decides where the plugin's folder goes and what it can do.
How many plugin types are there in Moodle?
Moodle 5.3 defines 45 core plugin types in lib/components.json. Plugins such as Assignment, Quiz and TinyMCE add their own subplugin types on top.
What is the difference between a local plugin and a block in Moodle?
A block is a visible panel on a page. A local plugin is for site-wide features that fit no other type, such as event observers, web services or admin settings, and does not need a user interface.
What is Frankenstyle in Moodle?
Frankenstyle is Moodle's naming convention for components: the plugin type and the plugin name joined by an underscore, such as mod_quiz or local_myplugin. It is used in folder names, language files, class namespaces and function names.
What are Moodle subplugins?
Subplugins extend one specific plugin, for example assignment submission types (assignsubmission), quiz access rules (quizaccess) and TinyMCE editor plugins (tiny). They are declared in the parent plugin's db/subplugins.json file.
Which Moodle plugin types are new in Moodle 4.5 and 5.x?
Moodle 4.5 added AI provider, AI placement and SMS gateway plugin types. Moodle 5.0 added grade penalty plugins and removed the Atto editor from core; Moodle 5.1 moved plugin folders under /public.
What files does a Moodle plugin need?
Every plugin needs version.php and an English language file (lang/en/type_name.php). Other files such as db/install.xml, db/access.php, settings.php and classes/ are added only when the plugin needs them.
Can EDZLMS build a custom Moodle plugin?
Yes. EDZLMS builds and maintains custom Moodle plugins (local, report, enrolment, authentication, block, course format and theme) through its Moodle development services. EDZLMS is not an official Moodle partner.
Sources
Checked on 1 December 2026 in Moodle's own code and developer documentation: the plugin type list in lib/components.json on the MOODLE_503_STABLE branch, compared with the 4.1 to 5.2 stable branches for when each type arrived or left; the subplugin files mod/assign, mod/quiz, mod/lti and editor/tiny; and the developer docs pages Plugin types, Plugin files and Local plugins (read from their source in the moodle/devdocs repository). Every core example named above was checked to exist in Moodle 5.3.
This post is published by edzlms, which offers Moodle development and DevOps services. EDZLMS is not an official Moodle partner.
Need a custom Moodle plugin?
Tell us what you need Moodle to do. We will tell you which plugin type fits, what it takes to build and how it stays upgrade-safe.