Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wordpress/wporg-mu-plugins
Development of the Global Header and other mu-plugins used on WordPress.org.
https://github.com/wordpress/wporg-mu-plugins
wordpress wporg
Last synced: about 1 month ago
JSON representation
Development of the Global Header and other mu-plugins used on WordPress.org.
- Host: GitHub
- URL: https://github.com/wordpress/wporg-mu-plugins
- Owner: WordPress
- Created: 2021-08-23T21:12:06.000Z (about 3 years ago)
- Default Branch: trunk
- Last Pushed: 2024-05-22T16:57:24.000Z (6 months ago)
- Last Synced: 2024-05-22T18:36:19.991Z (6 months ago)
- Topics: wordpress, wporg
- Language: PHP
- Homepage:
- Size: 7.16 MB
- Stars: 49
- Watchers: 17
- Forks: 25
- Open Issues: 65
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wporg-mu-plugins
Over time, this is intended to become the canonical source repository for all `mu-plugins` on the WordPress.org network. At the moment, it only includes a few.
## Usage
1. Add entries to the `repositories` and `require-dev` sections of `composer.json`. See [wporg-news-2021](https://github.com/WordPress/wporg-news-2021/) [composer.json](https://github.com/WordPress/wporg-news-2021/blob/trunk/composer.json) as an example.
1. Run `composer update` to install it
1. `require_once` the files that you want. e.g.,
```php
require_once WPMU_PLUGIN_DIR . '/wporg-mu-plugins/mu-plugins/blocks/global-header-footer/blocks.php';
```
1. See individual plugin readmes for specific instructions## Development
* `npm run start` during development, only builds `style.css`
* `npm run build` before commit/sync/deploy, builds `style.css` and `style-rtl.css`.
* `npm run build:rtl` to build `style-rtl.css`## Sync/Deploy
The built here are synced to `dotorg.svn` so they can be deployed. The aren't synced to `meta.svn`, since they're already open.
The other `mu-plugins` in `meta.svn` are not synced here. Over time, they can be removed from `meta.svn` and added here.
To sync these to `dotorg.svn`, run `bin/sync/wporg-mu-plugins.sh` on a w.org sandbox. Once they're committed, you can deploy like normal.