PHPackages                             moxie-lean/wp-acf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. moxie-lean/wp-acf

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

moxie-lean/wp-acf
=================

Helper functions for working with Advanced Custom Fields

1.3.2(4y ago)234.4k↓50%1[5 issues](https://github.com/wearenolte/wp-acf/issues)5MITPHPPHP &gt;=7.2 || &gt;=8.0

Since Feb 14Pushed 4y ago5 watchersCompare

[ Source](https://github.com/wearenolte/wp-acf)[ Packagist](https://packagist.org/packages/moxie-lean/wp-acf)[ Docs](https://github.com/moxie-lean/wp-acf)[ RSS](/packages/moxie-lean-wp-acf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (19)Used By (5)

ACF
===

[](#acf)

Helper functions for working with the Advanced Custom Fields plugin.

Requirements
------------

[](#requirements)

- PHP 7.2+ or 8.0+
- Composer

Getting Started
---------------

[](#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](https://packagist.org/packages/moxie-lean/acf)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
-------

[](#filters)

### `ln_acf_apply_default_transforms_{field_key}`

[](#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}`
--------------------------

[](#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`

[](#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`

[](#ln_acf_repeater_as_array)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 77.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~142 days

Recently: every ~500 days

Total

16

Last Release

1614d ago

Major Versions

0.4.4 → 1.0.02016-04-24

PHP version history (2 changes)0.1.0PHP &gt;=5.4

1.3.2PHP &gt;=7.2 || &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3921289?v=4)[Crisoforo Gaspar Hernández](/maintainers/mitogh)[@mitogh](https://github.com/mitogh)

![](https://www.gravatar.com/avatar/4aa05a59deaf5695b3a80e42e2c6b971ab92c171ad13cd7b95ca8175382cda60?d=identicon)[WeAreNolte](/maintainers/WeAreNolte)

---

Top Contributors

[![mitogh](https://avatars.githubusercontent.com/u/3921289?v=4)](https://github.com/mitogh "mitogh (31 commits)")[![Rulox](https://avatars.githubusercontent.com/u/6643657?v=4)](https://github.com/Rulox "Rulox (6 commits)")[![honekun](https://avatars.githubusercontent.com/u/572652?v=4)](https://github.com/honekun "honekun (2 commits)")[![zzuga](https://avatars.githubusercontent.com/u/13990408?v=4)](https://github.com/zzuga "zzuga (1 commits)")

---

Tags

wordpressacf

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/moxie-lean-wp-acf/health.svg)

```
[![Health](https://phpackages.com/badges/moxie-lean-wp-acf/health.svg)](https://phpackages.com/packages/moxie-lean-wp-acf)
```

###  Alternatives

[samrap/acf-fluent

A fluent interface for the Advanced Custom Fields WordPress plugin

28656.0k4](/packages/samrap-acf-fluent)[hellonico/acf-country

A country field for ACF.

12193.2k](/packages/hellonico-acf-country)[iceicetimmy/acf-post-type-selector

Post type selector for Advanced Custom Fields.

559.0k](/packages/iceicetimmy-acf-post-type-selector)[smithfield-studio/acf-svg-icon-picker

Add ACF field for selecting SVG icons.

3710.8k](/packages/smithfield-studio-acf-svg-icon-picker)[mmirus/acf-flexible-content-title

Display the content of a field in the title bar of your Advanced Custom Fields flexible content sections.

362.8k](/packages/mmirus-acf-flexible-content-title)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
