veronq / acfu
此包已被废弃,不再维护。未建议替代包。
用于高级自定义字段的PHP类集合
1.0.2
2019-11-07 22:00 UTC
Requires
- php: >=7.1
This package is auto-updated.
Last update: 2023-11-29 03:04:16 UTC
README
高级自定义字段插件(WordPress)的PHP类集合
前提条件
PHP>= 7.1
安装
$ 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);