{"id":26793077,"url":"https://github.com/beapi/bea-manage-theme-plugins","last_synced_at":"2026-03-04T20:04:03.950Z","repository":{"id":145483170,"uuid":"75392450","full_name":"BeAPI/bea-manage-theme-plugins","owner":"BeAPI","description":"Dev oriented plugin to manage theme's plugins (activation and deactivation) by forcing or suggesting it.","archived":false,"fork":false,"pushed_at":"2018-04-05T07:33:56.000Z","size":35,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-10-22T02:51:48.259Z","etag":null,"topics":[],"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/BeAPI.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}},"created_at":"2016-12-02T12:07:09.000Z","updated_at":"2023-01-08T16:34:54.000Z","dependencies_parsed_at":"2023-04-03T14:22:52.564Z","dependency_job_id":null,"html_url":"https://github.com/BeAPI/bea-manage-theme-plugins","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/BeAPI/bea-manage-theme-plugins","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-manage-theme-plugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-manage-theme-plugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-manage-theme-plugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-manage-theme-plugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeAPI","download_url":"https://codeload.github.com/BeAPI/bea-manage-theme-plugins/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-manage-theme-plugins/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30091588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T19:41:02.502Z","status":"ssl_error","status_checked_at":"2026-03-04T19:40:05.550Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2025-03-29T16:19:00.883Z","updated_at":"2026-03-04T20:04:03.923Z","avatar_url":"https://github.com/BeAPI.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BEA - Manage theme plugins\n\nDev oriented plugin to manage theme's plugins (activation and deactivation) by forcing or suggesting it.\n\n# Installation\n\n## WordPress\n\n* Download and install using the built-in WordPress plugin installer.\n* Site Activate in the \"Plugins\" area of the admin.\n* Optionally drop the entire `bea-manage-theme-plugins` directory into `mu-plugins`.\n* Add into your theme's functions.php file how to manage your list of plugins, see [Usages](https://github.com/BeAPI/bea-manage-theme-plugins#usages).\n\n## Composer\n\n* Add repository source : `{ \"type\": \"vcs\", \"url\": \"https://github.com/BeAPI/bea-manage-theme-plugins\" }`.\n* Include `\"bea/bea-manage-theme-plugins\": \"dev-master\"` in your composer file.\n* Add into your theme's functions.php file how to manage your list of plugins, see [Usages](https://github.com/BeAPI/bea-manage-theme-plugins#usages).\n\n# Usages\n\nIn your theme's functions.php file, hook on `bea\\manage_theme_plugins\\theme_plugins` to manage theme's plugins dependencies.\n\nHere is an example of how theme's plugins array is formatted :\n```\n$theme_plugins = [\n    plugin-folder1 =\u003e $action1,\n    plugin-file2.php =\u003e $action1\n];\n```\n\nAvailable actions are :\n- force_activation\n- suggest_activation\n- force_deactivation\n- suggest_deactivation\n\n## Example\n\n```\n\u003c?php\n/**\n * Manage all plugin dependencies\n */\nadd_filter( 'bea\\manage_theme_plugins\\theme_plugins', 'manage_my_theme_plugins' );\nfunction manage_my_theme_plugins( $plugins ) {\n\t$theme_plugins = [\n    \t'plugin-folder1' =\u003e 'force_activation',\n    \t'plugin2' =\u003e 'force_deactivation'\n    ];\n\n\treturn $plugins;\n}\n```\n\n## WP-Cli\n\n### Single site management\n\nWill exec only on given site, the theme's plugins management.\n\n`wp plugin theme_management --url={site_url}`\n\n### All sites management\n\nWill exec on all sites, the theme's plugins management.\n\n`wp site list --fields=url \\\n  | xargs -I % wp plugin theme_management --url=% `\n\nThe old command \"plugins manage_all\" is deprecated/removed.\n\n# Changelog ##\n\n## 2.1 - 04 Apr 2018\n\n* Minor refactoring PHP comments (thanks @TweetPressFr)\n* Rename WP-CLI command from \"plugins manage_single\" to  \"plugin theme_management\" (issue #7)\n\n## 2.0 - 04 Apr 2018\n\n* Refactoring plugin, use new plugin array structure\n* Remove \"manage_all\" WP-Cli command\n* Allow call plugin by short name, eg: advanced-custom-fields (without end part)\n* Remove some plugin actions from Plugins list\n\n## 1.1.1 / 1.1.2 - 13 Dec 2016\n\n* Fix multiple wp-cli call.\n* Refactoring \u0026 reformatting.\n* More wp-cli messages (logs / success).\n\n## 1.1.0 - 12 Dec 2016\n\n* Add wp cli to single or multiple management.\n* Update WP warnings messages.\n\n## 1.0.1 - 02 Dec 2016\n\n* Implement main methods to register/deregister theme's plugins depending in if it's forced or suggested.\n* Update readme with usage \u0026 example.\n* Add plugin's .pot.\n* Add French translation (po/mo).\n* Add composer.json !\n\n## 1.0.0 - 02 Dec 2016\n\n* Init with boilerplate 2.1.6\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeapi%2Fbea-manage-theme-plugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeapi%2Fbea-manage-theme-plugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeapi%2Fbea-manage-theme-plugins/lists"}