acf_field::add_field_filter
add_field_filter
This function will add a field type specific filter
Method of the class: acf_field{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_field = new acf_field(); $acf_field->add_field_filter( $tag, $function_to_add, $priority, $accepted_args );
- $tag
- .
Default:'' - $function_to_add
- .
Default:'' - $priority
- .
Default:10 - $accepted_args
- .
Default:1
Changelog
| Since 5.4.0 | Introduced. |
acf_field::add_field_filter() acf field::add field filter code ACF 6.0.4
function add_field_filter( $tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1 ) {
// append
$tag .= '/type=' . $this->name;
// add
$this->add_filter( $tag, $function_to_add, $priority, $accepted_args );
}