{"id":20876843,"url":"https://github.com/bonny/gardener","last_synced_at":"2025-05-12T15:32:37.230Z","repository":{"id":48021147,"uuid":"175995275","full_name":"bonny/gardener","owner":"bonny","description":"🏡 🌳 🌻 Cleans up dirty WordPress admin and frontend. It's your WordPress Gardener.","archived":false,"fork":false,"pushed_at":"2021-08-10T22:35:39.000Z","size":379,"stargazers_count":12,"open_issues_count":5,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T07:53:12.087Z","etag":null,"topics":["cleanup","composer","plugin","wordpress","wordpress-backend","wordpress-dashboard","wordpress-frontend","wordpress-plugin","wpackagist"],"latest_commit_sha":null,"homepage":"","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/bonny.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}},"created_at":"2019-03-16T16:19:15.000Z","updated_at":"2025-02-24T10:03:34.000Z","dependencies_parsed_at":"2022-08-12T16:50:53.507Z","dependency_job_id":null,"html_url":"https://github.com/bonny/gardener","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonny%2Fgardener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonny%2Fgardener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonny%2Fgardener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonny%2Fgardener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bonny","download_url":"https://codeload.github.com/bonny/gardener/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253766027,"owners_count":21960837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cleanup","composer","plugin","wordpress","wordpress-backend","wordpress-dashboard","wordpress-frontend","wordpress-plugin","wpackagist"],"created_at":"2024-11-18T06:55:09.478Z","updated_at":"2025-05-12T15:32:36.899Z","avatar_url":"https://github.com/bonny.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=center\u003e\n    🏡 🌳 🌻 Gardener  🌻 🌳 🏡\n    \u003cbr \u003e\n    – Opinionated cleanup for WordPress\n\u003c/h1\u003e\n\n_Gardener_\n\u003e one employed to care for the gardens or grounds of a home, business concern, or other property\n\n– https://www.merriam-webster.com/dictionary/gardener\n\n---\n\n**Gardener** is a WordPress plugin that adds theme support for an opinionated cleanup of the WordPress admin and frontend.\n\nNo feature is added or modified by default. Support for each feature must be added manually and if this plugin is uninstalled it will not break anything.\n\n## Installation and usage\n\nInstall using composer:\n\n    composer require bonny/gardener\n\n(Or you can just [download the plugin](https://github.com/bonny/gardener/releases) and place it in your wp plugins folder.)\n\nAdd support for wanted features in your `functions.php`:\n\n    add_theme_support('gardener-remove-emoji');\n    add_theme_support('gardener-relative-links');\n    add_theme_support('gardener-cleanup-upload-filenames');\n    add_theme_support('gardener-cleanup-dashboard');\n    add_theme_support('gardener-hide-posts');\n    add_theme_support('gardener-hide-comments');\n    add_theme_support('gardener-enhance-login-screen');\n\n## TODO\n\n- [ ] Add all wanted features.\n- [ ] Document features incl. screenshots.\n- [ ] Tests would be nice.\n\n## Features\n\n### Relative links\n\n    add_theme_support('gardener-relative-links');\n\n- Change links and images added in Gutenberg and TinyMCE to use relative paths, instead of absolute.\n  This is a benefit when developing a website on several domains, so you don't have to change all\n  links from http://beta.example.com/ to http://example.com/.\n\n\u003cdetails\u003e\n  \u003csummary\u003eScreenshot\u003c/summary\u003e\n  \"Coming soon.\"\n\u003c/details\u003e\n\n### Remove emoji\n\n    add_theme_support('gardener-remove-emoji');\n\n- Remove emoji related things.\n- Removes print_emoji_detection_script, print_emoji_styles.\n\n### Cleanup-upload-filenames\n\n    add_theme_support('gardener-cleanup-upload-filenames');\n\nMake file names of media attachments work better with more server configs because for example MacOS does not treat UPPERCASE or lowercase chars different, but a Linux server will. So if you transfer uploads to a server suddenly they stop working and give you 404 errors.\n\nWhen enabled this feature will\n\n- Only keep basic printable ASCII characters.\n- Remove international chars like \"åäö\".\n- Remove strange chars like `å` or `å`(they look very much like the Swedish letter `å`but they are not).\n- Remove percent signs \"%\".\n- Make file names lowercase.\n- Example: instead of `/uploads/svenska tecken och mellanslag åäöÅÄÖ hej citattecken';.jpg` your file will be uploaded as `/uploads/svenska-tecken-och-mellanslag-aaoaao-hej-citattecken.jpg`. Another example is the file `Ingen-ko-på-isen-1b-2.jpg` that will be changed to `ingen-ko-pa-isen-1b-2.jpg` (Funny bonus story: the previous filename is from a real project and it was the whole reason why I started working on this feature!).\n\n### Cleanup dashboard\n\n    add_theme_support('gardener-cleanup-dashboard');\n\n- Removes unwanted dashboard meta boxes, like QuickPress, plugins, recent drafts, incoming links, news and events, WPML meta box if WPML is installed.\n- Removes the text \"Thank you for creating with WordPress\" at the bottom.\n\n\u003cdetails\u003e\n  \u003csummary\u003eScreenshot\u003c/summary\u003e\nBefore cleaning up dashboard\n\n![cleanup-dashboard-before](./screenshots/cleanup-dashboard-before.png)\nAfter cleaning up dashboard\n![cleanup-dashboard-after](./screenshots/cleanup-dashboard-after.png)\n\n\u003c/details\u003e\n\n### Hide posts\n\n    add_theme_support('gardener-hide-posts');\n\n- Hide posts links from admin menu and from admin bar (New -\u003e Post).\n\n### Hide comments\n\n    add_theme_support('gardener-hide-comments');\n\n- Hide comments from admin menu.\n\n### Enhance login screen\n\n    add_theme_support('gardener-enhance-login-screen', [\n        'message' =\u003e \"Welcome to ACME Co website. Please login!\",\n        'image' =\u003e '84x84px-login-image.png',\n        'image_width =\u003e 200,\n        'image_height =\u003e 75,\n    ]);\n\n- Changes link to wordpress.org to a link back to the homepage of the site.\n- Add support for local client image above login fields.\n  - Uses image `login-client-logo.png` from theme folder if it exists, or any image using the `image` argument.\n- Arguments are optional.\n\n## Other similar plugins\n\nThis plugin is not unique. The following plugins are similar popular plugins:\n\n- https://github.com/littlebizzy/speed-demon\n- https://github.com/roots/soil\n- https://github.com/wordplate/plate\n\n## Changelog\n\n- 0.4 Add feature `gardener-hide-comments` that hides the comments menu item.\n- 0.3 Use `login_headertext` instead of `login_headertitle` because `login_headertitle` is deprecated since WordPress version 5.2.0.\n- 0.2.1 Add support for custom login image size.\n- 0.2 Add support for feature hide posts.\n- 0.1 First version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonny%2Fgardener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbonny%2Fgardener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonny%2Fgardener/lists"}