FRC - WP Base
A collection of modifications and default settings to apply for theme, admin, login & plugins.
by Frantic · github.com/frc/wp-base · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/frc/wp-base/archive/refs/heads/master.zipReadme
FRC - WP Base
This is a must-use plugin, plugin activation not required.
To activate module add theme support:
add_theme_support('frc-base-{SIDE}-{MODULE-NAME}');
For example:
add_theme_support('frc-base-theme-disable-api');
Available sides:
plugin- Applied if supported plugin is activatedlogin- Login and access related modulesadmin- Applied only when in admin panel (theme modules will not be loaded)theme- Applied for theme, REST API and any public side of the application
Usage
Add theme support to functions.php.
Example - recommended supports:
// Theme
add_theme_support('frc-base-theme-clean-up');
add_theme_support('frc-base-theme-disable-api');
add_theme_support('frc-base-theme-disable-asset-versioning');
add_theme_support('frc-base-theme-disable-rest-api', [
'disabled' => ['/'],
]);
add_theme_support('frc-base-theme-disable-trackbacks');
// Admin
add_theme_support('frc-base-admin-clean-up');
add_theme_support('frc-base-admin-defaults-tinymc');
add_theme_support('frc-base-admin-disable-update-checks');
// Plugins
add_theme_support('frc-base-plugin-all');
Enable side´s all modules
Example - enable all theme related modules:
add_theme_support('frc-base-theme-all');
Disable modules
It is possible to disable modules added by 'default' or 'all' feature by adding ! begeing of the feature.
Example:
add_theme_support('frc-base-theme-all'); // Activate all plugin modules
add_theme_support('!frc-base-plugin-woocommerce'); // Disable WooCommerce plugin module
Feature options
Some modules supports options:
frc-base-theme-disable-rest-api:
add_theme_support('frc-base-theme-disable-rest-api', [
'disabled' => ['/'], // Disable all routes
// or
'disabled' => ['users', 'posts'], // Disable user & post routes
'allowed' => ['posts'], // If all routes has been disabled but allow 'posts' route
// super admin / admins have access to all routes always, other logged in users can be limited as follows
'authenticated' => [
'disabled' => ['/'],
'allowed' => ['posts'],
]
]);
Available modules
Admin
frc-base-admin-clean-upfrc-base-admin-defaults-tinymcfrc-base-admin-defaults(enabled by default)frc-base-admin-disable-update-checks
Login
frc-base-login-defaults(enabled by default)frc-base-login-forcefrc-base-login-expiration
Plugin
frc-base-plugin-acffrc-base-plugin-auth0frc-base-plugin-defaults(enabled by default)frc-base-plugin-gravityformsfrc-base-plugin-woocommerce
Theme
frc-base-theme-clean-upfrc-base-theme-defaults(enabled by default)frc-base-theme-disable-apifrc-base-theme-disable-asset-versioningfrc-base-theme-disable-rest-apifrc-base-theme-disable-trackbacks
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.