veronq/acfu

This package is abandoned and no longer maintained. No replacement package was suggested.

A collection of useful PHP Classes for Advanced Custom Fields

1.0.2 2019-11-07 22:00 UTC

This package is auto-updated.

Last update: 2023-11-29 03:04:16 UTC


README

A collection of helpful PHP Classes for Advanced Custom Fields plugin (WordPress)

MIT license Latest Stable Version Total Downloads

Prerequisite

  • PHP >= 7.1

Installation

$ composer require veronq/acfu

API

File(field, ?slot, ?attr)

use VeronQ\ACFU\File;

$post_file = get_field('my_acf_file');

new File($post_file);

Image(field, ?size, ?attr)

use VeronQ\ACFU\Image;

$post_image = get_field('my_acf_image');

new Image($post_image);

Link(field, ?slot, ?attr)

use VeronQ\ACFU\Link;

$post_link = get_field('my_acf_link');

new Link($post_link);

Map(field, ?attr)

use VeronQ\ACFU\Map;

$post_map = get_field('my_acf_map');

new Map($post_map);

License

MIT