{"id":27671293,"url":"https://github.com/soberwp/intervention","last_synced_at":"2025-04-24T23:01:18.615Z","repository":{"id":38976311,"uuid":"67140442","full_name":"darrenjacoby/intervention","owner":"darrenjacoby","description":"WordPress plugin to configure wp-admin and application state using a single config file.","archived":false,"fork":false,"pushed_at":"2024-08-08T08:53:23.000Z","size":5159,"stargazers_count":644,"open_issues_count":8,"forks_count":51,"subscribers_count":26,"default_branch":"main","last_synced_at":"2025-04-19T02:00:43.703Z","etag":null,"topics":["dashboard","intervention","php","woocommerce","woocommerce-plugin","wordpress","wordpress-admin","wordpress-api","wordpress-development","wordpress-php-library","wordpress-plugin","wp-admin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darrenjacoby.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"darrenjacoby"}},"created_at":"2016-09-01T14:52:13.000Z","updated_at":"2025-04-08T10:36:36.000Z","dependencies_parsed_at":"2024-11-15T03:10:02.126Z","dependency_job_id":"9ce2f940-21fd-4629-af8a-a6b65873787b","html_url":"https://github.com/darrenjacoby/intervention","commit_stats":{"total_commits":361,"total_committers":25,"mean_commits":14.44,"dds":0.3850415512465374,"last_synced_commit":"60415eba14f801645bb872094e9e4c5110d2a865"},"previous_names":["soberwp/intervention"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrenjacoby%2Fintervention","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrenjacoby%2Fintervention/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrenjacoby%2Fintervention/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrenjacoby%2Fintervention/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darrenjacoby","download_url":"https://codeload.github.com/darrenjacoby/intervention/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250724680,"owners_count":21476876,"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":["dashboard","intervention","php","woocommerce","woocommerce-plugin","wordpress","wordpress-admin","wordpress-api","wordpress-development","wordpress-php-library","wordpress-plugin","wp-admin"],"created_at":"2025-04-24T23:00:49.233Z","updated_at":"2025-04-24T23:01:18.588Z","avatar_url":"https://github.com/darrenjacoby.png","language":"PHP","readme":"\u003cimg src=\".github/logo.svg?sanitize=true\"\u003e\n\nEasily customize [wp-admin](#admin) and configure [application](#application) options.\n\n[View on WordPress.org](https://wordpress.org/plugins/intervention/)\n\n## Installation\n\n[Composer](https://getcomposer.org/)\n\n```shell\n$ composer require wpackagist-plugin/intervention\n```\n\n[WP-CLI](http://wp-cli.org/)\n\n```shell\n$ wp plugin install intervention --activate\n```\n\n#### Requirements\n\n- [PHP](http://php.net/manual/en/install.php) \u003e= 7.4.0\n\n## Usage\n\nCreate `config/intervention.php` for Sage 10, or `intervention.php` inside your theme root folder and return an array.\n\n```php\n\u003c?php\n\nreturn [\n    'application' =\u003e [\n\n    ],\n    'wp-admin.$role|$username' =\u003e [\n\n    ],\n];\n```\n\nFor the options, you can use [dot notatation, a standard array, or a combination](.github/config.md).\n\n## Admin\n\nRemove components from wp-admin.\n\nReturn `wp-admin.$role` or `wp-admin.$username`\n\n- Support for multiple user roles using a pipe operator.\n  - `editor|author`\n\n```php\n\u003c?php\n\nreturn [\n    'wp-admin.$role|$username' =\u003e [\n        'common.adminbar',\n    ],\n];\n```\n\n**User Roles**\n\n- `all`\n- `all-not-administrator` (shortcut alias)\n- `administrator`\n- `author`\n- `editor`\n- `contributor`\n- `subscriber`\n\n### Options\n\n\u003c!-- **[Quick Reference]()** --\u003e\n\n#### Login\n\n- [login](.github/wp-admin/login.md)\n\n#### Common\n\n- [common.adminbar](.github/wp-admin/common.adminbar.md)\n- [common.editor](.github/wp-admin/common.editor.md)\n- [common.footer](.github/wp-admin/common.footer.md)\n- [common.menu](.github/wp-admin/common.menu.md)\n- [common.tabs](.github/wp-admin/common.tabs.md)\n- [common.title-link](.github/wp-admin/common.title-link.md)\n- [common.updates](.github/wp-admin/common.updates.md)\n- [common.all.list](.github/wp-admin/common.all.list.md)\n- [common.all.pagination](.github/wp-admin/common.all.pagination.md)\n- [common.all.search](.github/wp-admin/common.all.search.md)\n- [common.all.subsets](.github/wp-admin/common.all.subsets.md)\n\n#### Dashboard\n\n- [dashboard](.github/wp-admin/dashboard.md)\n- [dashboard.home](.github/wp-admin/dashboard.home.md)\n- [dashboard.updates](.github/wp-admin/dashboard.updates.md)\n\n#### Posts\n\n- [posts](.github/wp-admin/posts.md)\n- [posts.all](.github/wp-admin/posts.all.md)\n- [posts.item](.github/wp-admin/posts.item.md)\n- [posts.categories.all](.github/wp-admin/posts.categories.all.md)\n- [posts.categories.item](.github/wp-admin/posts.categories.item.md)\n- [posts.tags.all](.github/wp-admin/posts.tags.all.md)\n- [posts.tags.item](.github/wp-admin/posts.tags.item.md)\n\n#### Media\n\n- [media](.github/wp-admin/media.md)\n- [media.all](.github/wp-admin/media.all.md)\n- [media.add](.github/wp-admin/media.add.md)\n\n#### Pages\n\n- [pages](.github/wp-admin/pages.md)\n- [pages.all](.github/wp-admin/pages.all.md)\n- [pages.item](.github/wp-admin/pages.item.md)\n\n#### Comments\n\n- [comments](.github/wp-admin/comments.md)\n- [comments.all](.github/wp-admin/comments.all.md)\n\n#### Appearance\n\n- [appearance](.github/wp-admin/appearance.md)\n- [appearance.themes](.github/wp-admin/appearance.themes.md)\n- [appearance.customize](.github/wp-admin/appearance.customize.md)\n- [appearance.widgets](.github/wp-admin/appearance.widgets.md)\n- [appearance.menus](.github/wp-admin/appearance.menus.md)\n- [appearance.theme-editor](.github/wp-admin/appearance.theme-editor.md)\n\n#### Plugins\n\n- [plugins](.github/wp-admin/plugins.md)\n- [plugins.all](.github/wp-admin/plugins.all.md)\n- [plugins.add](.github/wp-admin/plugins.add.md)\n- [plugins.plugin-editor](.github/wp-admin/plugins.plugin-editor.md)\n\n#### Users\n\n- [users](.github/wp-admin/users.md)\n- [users.all](.github/wp-admin/users.all.md)\n- [users.add](.github/wp-admin/users.add.md)\n- [users.profile](.github/wp-admin/users.profile.md)\n\n#### Tools\n\n- [tools](.github/wp-admin/tools.md)\n- [tools.available](.github/wp-admin/tools.available.md)\n- [tools.import](.github/wp-admin/tools.import.md)\n- [tools.export](.github/wp-admin/tools.export.md)\n- [tools.site-health](.github/wp-admin/tools.site-health.md)\n- [tools.export-personal-data](.github/wp-admin/tools.export-personal-data.md)\n- [tools.erase-personal-data](.github/wp-admin/tools.erase-personal-data.md)\n\n#### Settings\n\n- [settings](.github/wp-admin/settings.md)\n- [settings.general](.github/wp-admin/settings.general.md)\n- [settings.writing](.github/wp-admin/settings.writing.md)\n- [settings.reading](.github/wp-admin/settings.reading.md)\n- [settings.discussion](.github/wp-admin/settings.discussion.md)\n- [settings.media](.github/wp-admin/settings.media.md)\n- [settings.permalinks](.github/wp-admin/settings.permalinks.md)\n\n## Application\n\nSet application options.\n\n- Options are automatically changed to read only fields in `wp-admin`.\n- Options can be placed under version control.\n\nReturn `application`.\n\nTip: automate exporting a config file from the database using Tools→Intervention in the WordPress admin.\n\n```php\n\u003c?php\n\nreturn [\n    'application' =\u003e [\n        'general' =\u003e [\n            'tagline' =\u003e 'Intervention Example',\n            'wp-address' =\u003e 'https://example.com/wp',\n            'site-address' =\u003e 'https://example.com',\n            'admin-email' =\u003e 'example@example.com',\n            'membership' =\u003e false,\n            'default-role' =\u003e 'editor',\n            'language' =\u003e 'en_US',\n            'timezone' =\u003e 'Africa/Johannesburg',\n            'date-format' =\u003e 'F j Y',\n            'time-format' =\u003e 'g:i a',\n            'week-starts' =\u003e 'Mon',\n        ],\n    ],\n];\n```\n\n### Options\n\n- [theme](.github/application/theme.md)\n- [posts/posttypes](.github/application/posts.md)\n- [taxonomies](.github/application/taxonomies.md)\n- [menus](.github/application/menus.md)\n- [plugins](.github/application/plugins.md)\n- [general](.github/application/general.md)\n- [reading](.github/application/reading.md)\n- [writing](.github/application/writing.md)\n- [discussion](.github/application/discussion.md)\n- [media](.github/application/media.md)\n- [permalinks](.github/application/permalinks.md)\n- [privacy](.github/application/privacy.md)\n\n### Quick Reference\n\n- [Full configuration options](.github/application-options.md)\n- [Full configuration example](.github/application-example.md)\n- [Register custom posttype](.github/application/posts.md#register)\n- [Register custom taxonomy](.github/application/taxonomies.md#register)\n- [Register custom image sizes](.github/application/media.md#image-sizes)\n- [Register custom nav menu](.github/application/menus.md#register)\n- [Remove comments](.github/application/discussion.md#remove)\n- [Remove posttype](.github/application/posts.md#remove)\n- [Remove taxonomy](.github/application/taxonomies.md#remove)\n- [Remove image size](.github/application/media.md#image-sizes)\n- [Remove emoji](.github/application/writing.md)\n- [Remove attachments](.github/application/posts.md#remove)\n- [Enable custom media/mime types](.github/application/media.md#mime-types)\n\n### Connect\n\n- Twitter: [@withjacoby](https://twitter.com/withjacoby)\n","funding_links":["https://github.com/sponsors/darrenjacoby"],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoberwp%2Fintervention","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoberwp%2Fintervention","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoberwp%2Fintervention/lists"}