frc/wp-base
Composer 安装命令:
composer require frc/wp-base
包简介
A collection of modifications and default settings to apply for theme, admin, login & plugins.
关键字:
README 文档
README
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
frc/wp-base 适用场景与选型建议
frc/wp-base 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 21.41k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 04 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 frc/wp-base 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 frc/wp-base 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 frc/wp-base 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Must-use plugin integrating WordPress with the Upsun platform: environment awareness, router-cache friendliness, safe preview clones, deploy migrations, Site Health checks, and a wp upsun CLI command.
Inertia.js server-side adapter for PHP. Handles full visits, Inertia XHR visits, asset-version 409 handshakes and partial reloads. Framework-agnostic, with transparent WordPress integration.
Adds Cache-Tag HTTP response headers for singular WordPress content and purges Cloudflare by tag when content changes.
AI Chatbot & Helpdesk Agent for WooCommerce. Connects your store to Egentify for AI-powered chat, order tracking, email, and ticketing.
MIDDAG's reference architecture for a WordPress plugin — composes the OSS framework/wordpress/ui libraries end to end.
Assets helper package for the Hybrid Core framework.
统计信息
- 总下载量: 21.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 28
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-16