PHPackages                             lafayettecollege/moodle-tool\_hidecourses - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. lafayettecollege/moodle-tool\_hidecourses

ActiveMoodle-tool

lafayettecollege/moodle-tool\_hidecourses
=========================================

This admin tool allows managers to set all courses in a category (including subcategories) to either hidden from, or visible to, students.

v4.1.0(1mo ago)024↓75%[1 issues](https://github.com/LafColITS/moodle-tool_hidecourses/issues)GPL-3.0-or-laterPHPCI passing

Since Jul 15Pushed 1mo ago5 watchersCompare

[ Source](https://github.com/LafColITS/moodle-tool_hidecourses)[ Packagist](https://packagist.org/packages/lafayettecollege/moodle-tool_hidecourses)[ RSS](/packages/lafayettecollege-moodle-tool-hidecourses/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Hide courses
============

[](#hide-courses)

[![Moodle Plugin CI](https://github.com/LafColITS/moodle-tool_hidecourses/workflows/Moodle%20Plugin%20CI/badge.svg)](https://github.com/LafColITS/moodle-tool_hidecourses/workflows/Moodle%20Plugin%20CI/badge.svg)

This admin tool allows managers to set all courses in a category (including subcategories) to either hidden from, or visible to, students. The intended use case is installations where all categories are already hidden by default and course visibility is the prime method for restricting access. At Lafayette, we combine this with overrides to `moodle/course:viewhiddencourses` at the category level to restict access by *teachers* to old courses.

Requirements
------------

[](#requirements)

- Moodle 4.1 (build 2022112800 or later)

Installation
------------

[](#installation)

Copy the hidecourses folder into your /admin/tool directory and visit your Admin Notification page to complete the installation.

Usage
-----

[](#usage)

The tool adds two links to the category navigation block, "Hide all courses" and "Show all courses." Each will take the user to a page describing what will happen and requesting confirmation. On confirmation, Moodle will create an "[adhoc task](https://docs.moodle.org/dev/Task_API#Adhoc_tasks)" to change all the settings in the background. This requires the cron be enabled. Each setting change will be logged in the standard Moodle log store.

If you're using Boost or a similar theme, you may need to access /course/index.php directly, navigate to the desired category, then click the edit cog at top right to reach the links.

Configuration
-------------

[](#configuration)

The tool has no options but does require, as mentioned above, that cron be running.

Author
------

[](#author)

Charles Fulton ()

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance90

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 95.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ef434bc036124ba911b2fdea03980e1867faaddd675e86184cdc2b18d210a66?d=identicon)[lafayettecollege](/maintainers/lafayettecollege)

---

Top Contributors

[![mackensen](https://avatars.githubusercontent.com/u/553370?v=4)](https://github.com/mackensen "mackensen (67 commits)")[![andyzito](https://avatars.githubusercontent.com/u/14895702?v=4)](https://github.com/andyzito "andyzito (3 commits)")

### Embed Badge

![Health badge](/badges/lafayettecollege-moodle-tool-hidecourses/health.svg)

```
[![Health](https://phpackages.com/badges/lafayettecollege-moodle-tool-hidecourses/health.svg)](https://phpackages.com/packages/lafayettecollege-moodle-tool-hidecourses)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.8k10](/packages/helsingborg-stad-municipio)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7691.4M4](/packages/wp-media-wp-rocket)[october/rain

October Rain Library

1611.7M109](/packages/october-rain)[drupal/recommended-project

Project template for Drupal projects with a relocated document root

1623.0M1](/packages/drupal-recommended-project)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45945.2k1](/packages/pressbooks-pressbooks)[mediawiki/maps

Adds various mapping features to MediaWiki

84157.7k3](/packages/mediawiki-maps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
