承接 moxie-lean/wp-acf 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

moxie-lean/wp-acf

Composer 安装命令:

composer require moxie-lean/wp-acf

包简介

Helper functions for working with Advanced Custom Fields

关键字:

README 文档

README

Helper functions for working with the Advanced Custom Fields plugin.

Requirements

  • PHP 7.2+ or 8.0+
  • Composer

Getting Started

The easiest way to install this package is by using running the following command from your terminal:

composer require moxie-lean/acf --save

Or by adding the following lines on your composer.json file

"require": {
  "moxie-lean/acf": "dev-master"
}

This will download the files from the packagelist site and set you up with the latest version located on master branch of the repository.

After that you can include the autoload.php file in order to be able to autoload the class during the object creation.

include '/vendor/autoload.php';

Filters

ln_acf_apply_default_transforms_{field_key}

This filter allows you to overwrite the default transforms applied to the field. Where {field_key} is replaced by the key of your field for example: ln_acf_apply_default_transforms_field_56f293e024b74.

The filter has the following parameters:

  1. $target_id: The id of the post or page that where the field belongs.
  2. $field_obj: array of data containing all field settings

ln_acf_field_{field_key}

This filter allow you to overwrite the default value returned for a particular field. The {field_key} is replaced by the key of your field for example: ln_acf_field_field_56f293e024b74.

The filter has the following parameters:

  1. $value: The value of the field or the default value to be returned.
  2. $target_id: The id of the post or page that where the field belongs.
  3. $field_obj: array of data containing all field settings

ln_acf_image_size

This filter is applied to images before are returned and can be used to return a specifc size of the image.

The filter has the following parameters.

  1. $size: By default the value is false and the $attachment_id is returned instead, here you can specify the size of the image you want to use.
  2. $field: Is the field that has the image here you have all the information of that particular field such as: key, name and so on,
  3. $sub_field: This is always false for fields that are not repeter fields otherwise contains the fields that are childs.

ln_acf_repeater_as_array

moxie-lean/wp-acf 适用场景与选型建议

moxie-lean/wp-acf 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 34.62k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2016 年 04 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「wordpress」 「acf」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 moxie-lean/wp-acf 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 moxie-lean/wp-acf 我们能提供哪些服务?
定制开发 / 二次开发

基于 moxie-lean/wp-acf 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 34.62k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 7
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 5
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-04-24