{"id":51101499,"url":"https://github.com/phucbm/wp-mu-plugins","last_synced_at":"2026-06-24T11:01:18.212Z","repository":{"id":354157365,"uuid":"1222408521","full_name":"phucbm/wp-mu-plugins","owner":"phucbm","description":"WordPress must-use plugins — block system, admin utilities, and more","archived":false,"fork":false,"pushed_at":"2026-04-27T10:58:47.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-27T12:26:11.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phucbm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-27T10:38:19.000Z","updated_at":"2026-04-27T10:57:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/phucbm/wp-mu-plugins","commit_stats":null,"previous_names":["phucbm/wp-mu-plugins"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/phucbm/wp-mu-plugins","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Fwp-mu-plugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Fwp-mu-plugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Fwp-mu-plugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Fwp-mu-plugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phucbm","download_url":"https://codeload.github.com/phucbm/wp-mu-plugins/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Fwp-mu-plugins/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34728928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-24T11:01:17.525Z","updated_at":"2026-06-24T11:01:18.206Z","avatar_url":"https://github.com/phucbm.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wp-mu-plugins\n\nA collection of standalone WordPress must-use plugins. Drop any file into your `mu-plugins/` directory — WordPress loads them automatically, no activation needed.\n\n## Block system (required for ACF Gutenberg block workflow)\n\nThese three work together. Install all of them when using the [wp-blocks-dev](https://github.com/phucbm/wp-blocks-dev) workflow.\n\n| File | What it does |\n|---|---|\n| [`acf-local-json-router.php`](https://github.com/phucbm/wp-mu-plugins/blob/main/acf-local-json-router.php) | Routes ACF field group JSON saves per-block to `blocks/{slug}/fields.json`, other groups to `acf-json/`. Commits all paths to git for team sync. |\n| [`wp-blocks-loader.php`](https://github.com/phucbm/wp-mu-plugins/blob/main/wp-blocks-loader.php) | Reads `blocks.json` and registers each block via `register_block_type()`. Adds a project block category in the Gutenberg inserter. Fixes WP 6.3+ defer strategy so `viewScript` files load in the footer. |\n| [`tailwind-theme-loader.php`](https://github.com/phucbm/wp-mu-plugins/blob/main/tailwind-theme-loader.php) | Enqueues Tailwind-built `style.generated.css` on the frontend and inside the Gutenberg editor iframe. Supports per-developer CSS files for team environments via `DEV_CSS_MAP`. |\n\n### Quick setup\n\n```php\n// In functions.php — map WP user IDs to per-dev CSS keys (optional)\ndefine('PX_PROJECT_NAME', 'My Project');  // sets block category label\ndefine('PX_ASSETS_HANDLE', 'my-project'); // prefix for script handles\n\ndefine('DEV_CSS_MAP', [\n    1 =\u003e 'alice',\n    2 =\u003e 'bob',\n]);\n```\n\n`blocks.json` at theme root:\n```json\n{ \"blocks\": [\"hero\", \"cta\", \"team-grid\"] }\n```\n\n---\n\n## General utilities\n\n| File | What it does |\n|---|---|\n| [`website-guide-loader.php`](https://github.com/phucbm/wp-mu-plugins/blob/main/website-guide-loader.php) | Renders a branded, printable website handover guide in WP admin. Configure color/author/client in `website-guide/website-guide.php`. Content driven by PHP files in `website-guide/content/`. Drop screenshots in `website-guide/public/` to auto-show them. |\n| [`featured-image-column.php`](https://github.com/phucbm/wp-mu-plugins/blob/main/featured-image-column.php) | Adds a clickable featured image column to the WP admin post list. Click to open the media picker and set the image without entering the post. |\n| [`featured-posts.php`](https://github.com/phucbm/wp-mu-plugins/blob/main/featured-posts.php) | Adds a featured checkbox to posts via meta key `_featured`. Includes sortable admin column, quick edit support, and a settings page (Settings → Featured Posts) to enable per post type. |\n| [`editor-restrictions.php`](https://github.com/phucbm/wp-mu-plugins/blob/main/editor-restrictions.php) | Applies Gutenberg editor restrictions for non-administrator roles: disables code editor, block locking, and unfiltered HTML. Uncomment additional restrictions in the config array as needed. |\n| [`admin-page-guard.php`](https://github.com/phucbm/wp-mu-plugins/blob/main/admin-page-guard.php) | Redirects unauthorized users away from specific admin pages. Configure `$allowed_users` and `$restricted_pages` at the top of the file for each project. |\n| [`gf-multiple-form-instances.php`](https://github.com/phucbm/wp-mu-plugins/blob/main/gf-multiple-form-instances.php) | Allows multiple instances of the same Gravity Forms form on a single page with AJAX — replaces all form IDs with unique values to prevent conflicts. |\n\n---\n\n## Requirements\n\n- WordPress 6.0+\n- PHP 8.0+\n- ACF Pro (for `acf-local-json-router.php` and `wp-blocks-loader.php`)\n- Gravity Forms (for `gf-multiple-form-instances.php`)\n\n## License\n\nMIT — [phucbm](https://github.com/phucbm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphucbm%2Fwp-mu-plugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphucbm%2Fwp-mu-plugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphucbm%2Fwp-mu-plugins/lists"}