Skip to content

Instantly share code, notes, and snippets.

@sc0ttkclark
Created October 21, 2025 14:13
Show Gist options
  • Save sc0ttkclark/0ff68c40a30fdf0e5e681aa28ec3aa66 to your computer and use it in GitHub Desktop.
Save sc0ttkclark/0ff68c40a30fdf0e5e681aa28ec3aa66 to your computer and use it in GitHub Desktop.
Place this file at wp-content/mu-plugins/fair-plugin.php and put the fair plugin files in wp-content/mu-plugins/fair-plugin/
<?php
/**
* Plugin Name: FAIR - Federated and Independent Repositories
* Description: Make your site more FAIR.
* Version: 1.0.0
* Author: FAIR Contributors
* License: GPLv2
* Requires at least: 5.4
* Requires PHP: 7.4
* Text Domain: fair
* Domain Path: /fair-plugin/languages
*/
add_action( 'plugins_loaded', static function() {
if ( ! defined( '\FAIR\VERSION' ) ) {
require_once __DIR__ . '/fair-plugin/plugin.php';
}
} );
@sc0ttkclark
Copy link
Author

You can get the fair-plugin files at: https://github.com/fairpm/fair-plugin/releases

Update the mu plugin code above to match the version or other name/description changes that happen in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment