Layout
Customize the query and output of the shortcode for a Layout.
Please make sure you've installed the latest version of the plugin before using these filters.
Some filters are common and available in both the Lite and Pro versions, where some are only available in the Pro Edition, these have been labelled as (Pro).
Do you need to customize something but a filter or hook is unavailable?
Then Contact us and we'll try to add it as soon as possible.
List
acf_views/view/field_data/type={fieldType}
acf_views/view/field_data/name={fieldName}
acf_views/view/field_data/view_id={viewId}
acf_views/view/custom_variables (Pro)
acf_views/view/custom_variables/view_id={viewId} (Pro)
Description
Field Data
Allows you to amend field data before it's inserted into the template.
$field_data(array) Field data$field_meta(Field_Meta_Interface) Information about the field.$view_id(string) Unique ID of the current Layout.
Custom Layout Variables (Pro)
Allows to add custom variables to the custom markup.
$php_variables(array) Current custom variables (Custom Markup Variables field, an associative array of values, where keys are variable names). These variables can be accessed in the custom markup with brackets, like{VARIABLE_NAME}$view_id(string) Unique ID of the current Layout$object_id(int) ID of the current data post$field_values(array) An associative field values array, where keys are field identifiers
Shortcode output
It’s a built-in WordPress hook that allows modifying the output of the whole shortcode. Code example shown below. Read more here.
FieldMeta
Some filters have a plugin's class instances as arguments. These classes implement interfaces, and if you want to declare a type of a filter argument in your code, you must use an interface instead of a class name.
Last updated