Download the PHP package moxie-lean/wp-acf without Composer

On this page you can find all versions of the php package moxie-lean/wp-acf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-acf

ACF

Helper functions for working with the Advanced Custom Fields plugin.

Requirements

Getting Started

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

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

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.

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


All versions of wp-acf with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2 || >=8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package moxie-lean/wp-acf contains the following files

Loading the files please wait ....