mattpatterson94/mpwp-settings
Composer 安装命令:
composer require mattpatterson94/mpwp-settings
包简介
A basic settings plugin for Wordpress
关键字:
README 文档
README
MPWP SETTINGS WORDPRESS PLUGIN
This plugin was created to add generic settings pages to wordpress sites, to reduce repetition.
How it works
This plugin installs Advanced Custom Fields when running composer install, in order to create options pages for any wordpress site this plugin is activated on. This makes starting out new wordpress sites a lot easier, and you don't have to create any standard wordpress options pages.
Current Options
These are the current option pages set up currently.
- Theme settings
- General
- Social media
- Footer settings
- Slides
Current Shortcodes
There are shortcodes available via this plugin that can be used in the theme.
- General
[mpwp-setting setting="example"][logo][phone-number][email-address]
- Social media
[social-url product="example"]
- Footer settings
[copyright-text]
Adding new options
To create a new options page, there's a few lines of code needed.
- Create a new options file in
optionsfor the new page - Refer to this guide for setting up a new option page, or look at an existing one in the plugin
Creating option fields
- To create the fields for the options page, log into the wordpress site you're currently developing.
- Install ACF if it's not already installed.
- Create the fields you want to add to the options page.
- Export the fields as PHP in the
exportmenu, within ACF. - Paste the code it gives you into the options file you created.
- Look for
locationin the code you pasted in. - Replace
locationwith the following:
'location' => array (
array (
array (
'param' => 'options_page',
'operator' => '==',
'value' => 'acf-options-[OPTIONSPAGE]',
),
),
),
- Replace
OPTIONSPAGEwith the name of the options page. - If any issues, refer to current options pages for reference.
mattpatterson94/mpwp-settings 适用场景与选型建议
mattpatterson94/mpwp-settings 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 100 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 09 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mattpatterson94/mpwp-settings 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mattpatterson94/mpwp-settings 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mattpatterson94/mpwp-settings 相关的其它包
同方向 / 同关键字的高下载量 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.
统计信息
- 总下载量: 100
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2021-09-02