- Contributors: bobbingwide, vsgloik
- Donate link: https://www.oik-plugins.com/oik/oik-donate/
- Tags: oik, plugin, loader
- Requires at least: 5.2.3
- Tested up to: 6.9
- Stable tag: 1.5.1
WordPress Must Use plugin to load required plugins.
Use the oik-loader plugin to load required plugins on demand. Dynamically loading the required plugins allow the block catalog to show live examples of blocks implemented by a wide range of plugins. Developed for use on blocks.wp-a2z.org and oik-plugins.com. Extended in 2024 for use on wp-secrets.co.uk.
- Upload the contents of the oik-loader plugin to the `/wp-content/plugins/oik-loader' directory
- Activate the oik-loader plugin through the 'Plugins' menu in WordPress
- Visit oik-loader admin page
- Click on the link to activate/update the Must Use ( MU ) plugin
- Click on the link to Rebuild the index - oik-loader.site.csv file in the mu-plugins folder
- Click on the link to Rebuild the plugin dependencies - oik-component-dependencies.site.csv file in the mu-plugins folder
- If required provide an oik-loader-extras.csv file in the mu-plugins folder
- Note: In a WordPress Multi Site installation
- There will only be one version of the Must Use plugin ( oik-loader-mu.php )
- There will be multiple index and component dependencies files; one of each per site.
- There may be one oik-loader-extras.csv file.
It helps to reduce the number of activated plugins in blocks.wp-a2z.org It dynamically loads the required plugins for a plugin, block or block_example.
Once all the blocks for a plugin have been generated then the plugin can be deactivated.
With the following exceptions:
- oik-blocks - since these blocks are used in all content
- any other plugins that deliver blocks that are used throughout the site
- plugins which are required for other functionality
If not running an FSE the site should operate with/without Gutenberg being activated. Currently Gutenberg is required for an FSE theme. In v1.1.0 the logic has been changed to support different variants of the Gutenberg plugin being the activated plugin.
- None
Tested with WordPress 6.9 and PHP 8.4
- Changed: Change str_getcsv default escape to blank #23
- Tested: With WordPress 6.9
- Tested: With PHP 8.4
If you want to read more about oik plugins and themes then please visit oik-plugins
